Merge pull request #768 from mmkayPL/fix-core-size-calculation

Change core size gb calculation to use 64bit parameter
This commit is contained in:
Robert Baldyga 2021-03-30 09:47:29 +02:00 committed by GitHub
commit f77e5a9b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ static inline unsigned long bytes_to_4k(uint64_t size)
return (size + 4095UL) >> 12;
}
static float calc_gb(uint32_t clines)
static float calc_gb(uint64_t clines)
{
return (float) clines * 4 * KiB / GiB;
}