diff options
author | Robert Mustacchi <rm@joyent.com> | 2016-02-26 21:36:56 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2016-03-25 20:27:58 -0700 |
commit | 6a19b8666104dbf912da5a4fb193c9c2b29e21bb (patch) | |
tree | ec34622816eb71cfa25ae9605b3ada17be5297b2 | |
parent | 1ef6182819f36233702ddc54686e703bb23a0153 (diff) | |
download | illumos-joyent-6a19b8666104dbf912da5a4fb193c9c2b29e21bb.tar.gz |
4740 kstat(1M) prints wrong snaptime
Reviewed by: Dave Pacheco <dap@joyent.com>
Reviewed by: David Höppner <0xffea@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/cmd/stat/kstat/kstat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/stat/kstat/kstat.c b/usr/src/cmd/stat/kstat/kstat.c index ee95db1c64..e072b5fe2a 100644 --- a/usr/src/cmd/stat/kstat/kstat.c +++ b/usr/src/cmd/stat/kstat/kstat.c @@ -23,7 +23,7 @@ * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013 David Hoeppner. All rights reserved. * Copyright 2013 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2013, Joyent, Inc. All rights reserved. + * Copyright 2016 Joyent, Inc. */ /* @@ -658,7 +658,6 @@ ks_instances_read(kstat_ctl_t *kc) offsetof(ks_nvpair_t, nv_next)); SAVE_HRTIME_X(ksi, "crtime", kp->ks_crtime); - SAVE_HRTIME_X(ksi, "snaptime", kp->ks_snaptime); if (g_pflg) { SAVE_STRING_X(ksi, "class", kp->ks_class); } @@ -679,6 +678,8 @@ ks_instances_read(kstat_ctl_t *kc) continue; } + SAVE_HRTIME_X(ksi, "snaptime", kp->ks_snaptime); + switch (kp->ks_type) { case KSTAT_TYPE_RAW: save_raw(kp, ksi); |