]> granicus.if.org Git - sysstat/commit
Fix #154: pidstat: Don't stop if /proc/#/schedstat files not found
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 23 Jun 2017 10:00:01 +0000 (12:00 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 23 Jun 2017 10:00:01 +0000 (12:00 +0200)
commit8c52776ce672b6e68674c24d1de63fff8e2c894a
tree817eeb34468f2b56a20d714ecf46fc7ae94627c4
parent22d1d275d3b2a0e920e4218f9ffce9e2674f1905
Fix #154: pidstat: Don't stop if /proc/#/schedstat files not found

Commit a41b24a added %wait field to pidstat CPU statistics. This field
is calculated for each task using the contents of /proc/#/schedstat
file. Yet pidstat should not stop if this file cannot be found: It
should display the other CPU statistics as usual and display 0.00 for
this particular field. This is what this patch does.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pidstat.c