Fix integer overflow in getstat()

Merge request 16
This commit is contained in:
Craig Small 2013-09-11 21:57:10 +10:00
commit 71305c095a

View File

@ -494,6 +494,7 @@ void getstat(jiff *restrict cuse, jiff *restrict cice, jiff *restrict csys, jiff
getrunners(running, blocked);
}
if(*running)
(*running)--; // exclude vmstat itself
if(need_vmstat_file){ /* Linux 2.5.40-bk4 and above */