Fix integer overflow in getstat()
Merge request 16
This commit is contained in:
commit
71305c095a
@ -494,7 +494,8 @@ void getstat(jiff *restrict cuse, jiff *restrict cice, jiff *restrict csys, jiff
|
|||||||
getrunners(running, blocked);
|
getrunners(running, blocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
(*running)--; // exclude vmstat itself
|
if(*running)
|
||||||
|
(*running)--; // exclude vmstat itself
|
||||||
|
|
||||||
if(need_vmstat_file){ /* Linux 2.5.40-bk4 and above */
|
if(need_vmstat_file){ /* Linux 2.5.40-bk4 and above */
|
||||||
vminfo();
|
vminfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user