1
0
Fork 0
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:
Such Meme, Many Skill 2020-04-22 12:23:18 +02:00
parent e24f8ad722
commit 78722d9a90

View file

@ -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;