projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb3884d
)
[PATCH] Only generate global bandwidth log if write_bw_log set
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 17 Jan 2007 06:42:30 +0000
(17:42 +1100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 17 Jan 2007 06:42:30 +0000
(17:42 +1100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
eta.c
patch
|
blob
|
blame
|
history
diff --git
a/eta.c
b/eta.c
index feda8d0f15615e764c1ff0a590f5cfd858aa989f..0b022502093b4b436f9f65e4fddf044134d4e6a4 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-242,8
+242,10
@@
void print_thread_status(void)
r_rate = (io_bytes[0] - prev_io_bytes[0]) / mtime;
w_rate = (io_bytes[1] - prev_io_bytes[1]) / mtime;
fio_gettime(&prev_time, NULL);
- add_agg_sample(r_rate, DDIR_READ);
- add_agg_sample(w_rate, DDIR_WRITE);
+ if (write_bw_log) {
+ add_agg_sample(r_rate, DDIR_READ);
+ add_agg_sample(w_rate, DDIR_WRITE);
+ }
memcpy(prev_io_bytes, io_bytes, sizeof(io_bytes));
}