vmstat: do not scale si/so just like bi/bo

Use strtoull insteadof strtoul for some counters.

A patch from Debian.

Bug-Debian: http://bugs.debian.org/558361
Bug-Debian: http://bugs.debian.org/558134
Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Michael Tokarev authored and Craig Small committed 2011-12-18 22:54:20 +11:00
1 parent 3cea313cf3
commit 04ce4db830
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -647,7 +647,7 @@ void meminfo(void){
);
head = tail+1;
if(!found) goto nextline;
*(found->slot) = strtoul(head,&tail,10);
*(found->slot) = (unsigned long)strtoull(head,&tail,10);
nextline:
tail = strchr(head, '\n');
if(!tail) break;