14 lines
399 B
Plaintext
14 lines
399 B
Plaintext
--- vmstat.c
|
|
+++ vmstat.c 2013-08-02 12:57:52.677680360 +0000
|
|
@@ -224,8 +224,8 @@ static void new_header(void)
|
|
|
|
static unsigned long unitConvert(unsigned long size)
|
|
{
|
|
- 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);
|
|
}
|
|
|