2016-08-18 09:15:06 +02:00
|
|
|
---
|
|
|
|
vmstat.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2013-08-04 17:07:47 +02:00
|
|
|
--- vmstat.c
|
2022-04-14 17:23:21 +02:00
|
|
|
+++ vmstat.c 2016-07-11 13:18:04.993371059 +0000
|
|
|
|
@@ -273,8 +273,8 @@ static void new_header(void)
|
2013-08-04 17:07:47 +02:00
|
|
|
|
|
|
|
static unsigned long unitConvert(unsigned long size)
|
|
|
|
{
|
2022-04-14 17:23:21 +02:00
|
|
|
- float cvSize;
|
|
|
|
- cvSize = (float)size / dataUnit * ((statMode == SLABSTAT) ? 1 : 1024);
|
|
|
|
+ long double cvSize;
|
|
|
|
+ cvSize = (long double)size / dataUnit * ((statMode == SLABSTAT) ? 1 : 1024);
|
|
|
|
return ((unsigned long)cvSize);
|
2013-08-04 17:07:47 +02:00
|
|
|
}
|
|
|
|
|