]> granicus.if.org Git - sysstat/commit
sar: Fix return code sent by write_stats() function
authorSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 22 Dec 2020 11:22:30 +0000 (12:22 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 22 Dec 2020 11:22:30 +0000 (12:22 +0100)
commitd903bff67f67fe7ff8a2f441cadf745434d93a4e
treea7e71fa0c033d94091defd1c45acd18d0993dda7
parenta40476c8f2f350e90f2c6ec7dcf21461f8cc5d80
sar: Fix return code sent by write_stats() function

Make sure that a line of statistics has actually been displayed to
return 1 for the status code value.
When an activity has no item at all for current sample, we should not
return a status code of 1 else we won't display the header line for
next sample.

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