projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
b9f93e0
)
Merge branch 'epoch-histograms' of https://github.com/cronburg/fio
author
Jens Axboe
<axboe@fb.com>
Thu, 25 Aug 2016 22:03:20 +0000
(16:03 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 25 Aug 2016 22:03:20 +0000
(16:03 -0600)
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 552d88dde06797c9098820da224cd0891aab268e..74c2686c660ca33b76b12e85eefab3a68e933e7c 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-2457,12
+2457,12
@@
int calc_log_samples(void)
next = min(td->o.iops_avg_time, td->o.bw_avg_time);
continue;
}
- if (!per_unit_log(td->bw_log)) {
+ if (
td->bw_log &&
!per_unit_log(td->bw_log)) {
tmp = add_bw_samples(td, &now);
if (tmp < next)
next = tmp;
}
- if (!per_unit_log(td->iops_log)) {
+ if (
td->iops_log &&
!per_unit_log(td->iops_log)) {
tmp = add_iops_samples(td, &now);
if (tmp < next)
next = tmp;