mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 20:06:43 +00:00
Fix calc bug in partition size calculation
This commit is contained in:
parent
e24f8ad722
commit
78722d9a90
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ void addEntry(emmc_part_t *part, u8 property, int spot){
|
|||
u64 size = 0;
|
||||
int sizes = 0;
|
||||
mmcMenuEntries[spot].property = 0;
|
||||
size = (part->lba_end + 1 - part->lba_start) * NX_EMMC_BLOCKSIZE;
|
||||
size = (u64)(part->lba_end + 1 - part->lba_start);
|
||||
size *= (u64)NX_EMMC_BLOCKSIZE;
|
||||
|
||||
while (size > 1024){
|
||||
size /= 1024;
|
||||
|
|
Loading…
Reference in a new issue