Output times as normal microseconds, rather then in bintime format.
This commit is contained in:
parent
d9556fb15d
commit
2eb293b996
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288043
@ -326,8 +326,8 @@ compute_stats(struct ctl_lun_io_stats *cur_stats,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define PRINT_BINTIME(prefix, bt) \
|
#define PRINT_BINTIME(prefix, bt) \
|
||||||
printf("%s %jd s %ju frac\n", prefix, (intmax_t)(bt).sec, \
|
printf("%s %jd.%06ju\n", prefix, (intmax_t)(bt).sec, \
|
||||||
(uintmax_t)(bt).frac)
|
(uintmax_t)(((bt).frac >> 32) * 1000000 >> 32))
|
||||||
static const char *iotypes[] = {"NO IO", "READ", "WRITE"};
|
static const char *iotypes[] = {"NO IO", "READ", "WRITE"};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -360,9 +360,8 @@ ctlstat_dump(struct ctlstat_context *ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define JSON_BINTIME(prefix, bt) \
|
#define JSON_BINTIME(prefix, bt) \
|
||||||
printf("\"%s\":{\"sec\":%jd,\"frac\":%ju},", \
|
printf("\"%s\":%jd.%06ju,", prefix, (intmax_t)(bt).sec, \
|
||||||
prefix, (intmax_t)(bt).sec, (uintmax_t)(bt).frac)
|
(uintmax_t)(((bt).frac >> 32) * 1000000 >> 32))
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ctlstat_json(struct ctlstat_context *ctx) {
|
ctlstat_json(struct ctlstat_context *ctx) {
|
||||||
int iotype, lun, port;
|
int iotype, lun, port;
|
||||||
|
Loading…
Reference in New Issue
Block a user