projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff42e9
)
fix 1000 vs kb_base confusion in show_run_stats.
author
YAMAMOTO Takashi
<yamamoto@valinux.co.jp>
Wed, 23 Jun 2010 12:46:35 +0000
(14:46 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Wed, 23 Jun 2010 12:46:35 +0000
(14:46 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 9d1f66ac9a0b9eb7006add0411d987a40bacd038..143325aa1879680e2e09c5a18c13964b57661845 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-635,9
+635,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] *
1000
) / max_run[0];
+ rs->agg[0] = (rs->io_kb[0] *
rs->kb_base
) / max_run[0];
if (rs->max_run[1])
- rs->agg[1] = (rs->io_kb[1] *
1000
) / max_run[1];
+ rs->agg[1] = (rs->io_kb[1] *
rs->kb_base
) / max_run[1];
}
/*