Fix integer overflow in getstat()
Merge request 16
This commit is contained in:
commit
71305c095a
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user