diff options
author | Krishnendu Sadhukhan - Sun Microsystems <Krishnendu.Sadhukhan@Sun.COM> | 2009-08-05 20:39:41 -0700 |
---|---|---|
committer | Krishnendu Sadhukhan - Sun Microsystems <Krishnendu.Sadhukhan@Sun.COM> | 2009-08-05 20:39:41 -0700 |
commit | 26fd77009b17f8c8fb32eb362584cfd635e87ad9 (patch) | |
tree | 6d69403d719d85f7ed8586b733a77f04743e25f4 /usr/src/cmd/stat/mpstat | |
parent | 7ff836697c120cb94bd30d5c2204eb9b74718e4c (diff) | |
download | illumos-gate-26fd77009b17f8c8fb32eb362584cfd635e87ad9.tar.gz |
6824918 timestamp option for xxstat commands
PSARC/2009/307 Time Stamp Option for xxstat Commands Phase II
Contributed by Chad Mynhier <cmynhier@gmail.com>
Diffstat (limited to 'usr/src/cmd/stat/mpstat')
-rw-r--r-- | usr/src/cmd/stat/mpstat/mpstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/stat/mpstat/mpstat.c b/usr/src/cmd/stat/mpstat/mpstat.c index 320bc8be80..64324224fd 100644 --- a/usr/src/cmd/stat/mpstat/mpstat.c +++ b/usr/src/cmd/stat/mpstat/mpstat.c @@ -53,7 +53,7 @@ char *cmdname = "mpstat"; int caught_cont = 0; -extern uint_t timestamp_fmt; +static uint_t timestamp_fmt = NODATE; static int hz; static int display_pset = -1; @@ -490,7 +490,7 @@ show_cpu_usage(struct snapshot *old, struct snapshot *new, int display_agg) snapshot_cb cb = compare_cpu; if (timestamp_fmt != NODATE) - print_timestamp(); + print_timestamp(timestamp_fmt); if (lines_until_reprint == 0 || nr_active_cpus(new) > 1) { print_header(display_agg, show_set); |