From 32b3c98527c6a2469ce64f46f86a4f72fe07217a Mon Sep 17 00:00:00 2001 From: Kozlowski Mateusz Date: Mon, 29 Mar 2021 13:27:47 +0200 Subject: [PATCH] Change core size gb calculation to use 64bit parameter Fixes #766 Signed-off-by: Kozlowski Mateusz --- casadm/statistics_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casadm/statistics_model.c b/casadm/statistics_model.c index 8061fac..6b74f69 100644 --- a/casadm/statistics_model.c +++ b/casadm/statistics_model.c @@ -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; }