projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c20f0
)
Revert "fix 1000 vs kb_base confusion in show_run_stats."
author
Jens Axboe
<jaxboe@fusionio.com>
Fri, 25 Jun 2010 12:33:37 +0000
(14:33 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Fri, 25 Jun 2010 12:33:37 +0000
(14:33 +0200)
This reverts commit
1f53e9d84573b1f9b9a23ad3ac4ef3d312d59c78
.
The conversion is from msec to sec, so the 1000 factor
was correct.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 0f259d273bd48e04e8f7752e522ff44bd72a1a3c..a79c7ef29da473567debc712f3c6909b077f7a13 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-658,9
+658,9
@@
void show_run_stats(void)
max_run[1] = rs->max_run[1];
if (rs->max_run[0])
- rs->agg[0] = (rs->io_kb[0] *
rs->kb_base
) / max_run[0];
+ rs->agg[0] = (rs->io_kb[0] *
1000
) / max_run[0];
if (rs->max_run[1])
- rs->agg[1] = (rs->io_kb[1] *
rs->kb_base
) / max_run[1];
+ rs->agg[1] = (rs->io_kb[1] *
1000
) / max_run[1];
}
/*