libbb: fix wrong sscanf count check (affects pidof etc)
This commit is contained in:
parent
b140eddc41
commit
16afa38a7b
@ -258,7 +258,7 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
|
|||||||
&sp->start_time,
|
&sp->start_time,
|
||||||
&vsz,
|
&vsz,
|
||||||
&rss);
|
&rss);
|
||||||
if (n != 10)
|
if (n != 11)
|
||||||
break;
|
break;
|
||||||
/* vsz is in bytes and we want kb */
|
/* vsz is in bytes and we want kb */
|
||||||
sp->vsz = vsz >> 10;
|
sp->vsz = vsz >> 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user