]> granicus.if.org Git - sysstat/commit
Don't compute global system uptime when reading CPU stats
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 13 Oct 2017 12:20:30 +0000 (14:20 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 16 Oct 2017 15:18:01 +0000 (17:18 +0200)
commit4a9a71b53b04b7493096413575353525b017207d
tree1f55ae70da18be956163b75d9c8d7354eb517496
parent7c1b7c22dda2a637c6782834a075c896749fe18a
Don't compute global system uptime when reading CPU stats

Don't compute "global system uptime" (i.e. total number of jiffies spent
by all processors) in read_stat_cpu() function so that we don't have to
pass the result from one function to another.
Global system uptime is used only when displaying CPU statistics, so
this is now done locally in the functions displaying CPU statistics.
Also as a consequence, field uptime has been removed from the
record_header structure associated with every sample statistics in
sar/sadc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
17 files changed:
activity.c
iostat.c
json_stats.c
mpstat.c
pidstat.c
pr_stats.c
rd_stats.c
rd_stats.h
rndr_stats.c
sa.h
sa_common.c
sa_wrap.c
sadc.c
sadf.c
sar.c
svg_stats.c
xml_stats.c