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/vmstat/vmstat.c | |
parent | 7ff836697c120cb94bd30d5c2204eb9b74718e4c (diff) | |
download | illumos-joyent-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/vmstat/vmstat.c')
-rw-r--r-- | usr/src/cmd/stat/vmstat/vmstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/stat/vmstat/vmstat.c b/usr/src/cmd/stat/vmstat/vmstat.c index 0b576d1ece..613284c82e 100644 --- a/usr/src/cmd/stat/vmstat/vmstat.c +++ b/usr/src/cmd/stat/vmstat/vmstat.c @@ -31,7 +31,7 @@ char *cmdname = "vmstat"; int caught_cont = 0; -extern uint_t timestamp_fmt; +static uint_t timestamp_fmt = NODATE; static int hz; static int pagesize; @@ -279,7 +279,7 @@ dovmstats(struct snapshot *old, struct snapshot *new) updates = denom(DELTA(s_sys.ss_sysinfo.updates)); if (timestamp_fmt != NODATE) { - print_timestamp(); + print_timestamp(timestamp_fmt); lines--; } |