Merge pull request #768 from mmkayPL/fix-core-size-calculation
Change core size gb calculation to use 64bit parameter
This commit is contained in:
commit
f77e5a9b49
@ -65,7 +65,7 @@ static inline unsigned long bytes_to_4k(uint64_t size)
|
|||||||
return (size + 4095UL) >> 12;
|
return (size + 4095UL) >> 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
static float calc_gb(uint32_t clines)
|
static float calc_gb(uint64_t clines)
|
||||||
{
|
{
|
||||||
return (float) clines * 4 * KiB / GiB;
|
return (float) clines * 4 * KiB / GiB;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user