]> granicus.if.org Git - sysstat/commit
pidstat: Don't stop if gtime and cgtime fields are unavailable
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 12 Mar 2015 20:39:58 +0000 (21:39 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 12 Mar 2015 20:39:58 +0000 (21:39 +0100)
commitb8369bf1f793b9961fbf372605f905f82db7cdfc
tree5907ca00c9bffb39436855dd7da79dc63ca6aae4
parenta16d460fafebbde0dc7648e67bdd91cfa731373c
pidstat: Don't stop if gtime and cgtime fields are unavailable

With some old 2.6 kernels, fields "gtime" and "cgtime" (which are
expected to be read from /proc/#/stat file) may not be present.
pidstat used to stop should this case happens.
Fix this since these fields are not mandatory for pidstat to display its
statistics.

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