diff options
author | Jens Axboe <axboe@fb.com> | 2014-02-13 20:04:02 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-13 20:04:02 -0700 |
commit | b74b8208826be02d93d0933eb24ad792f4e78f64 (patch) | |
tree | 850d17beb2f295c00da2e4219eed95874dba68c9 | |
parent | aba6c951a6ecfa7f5471fa0c53ccf85afa32e9a5 (diff) | |
download | fio-b74b8208826be02d93d0933eb24ad792f4e78f64.tar.gz fio-b74b8208826be02d93d0933eb24ad792f4e78f64.tar.bz2 |
Fix inverted logic in gtod_reduce()
Fixes a bug in the previous commit, where someone wasn't
thinking straight...
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | io_u.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1523,8 +1523,8 @@ void io_u_log_error(struct thread_data *td, struct io_u *io_u) static inline int gtod_reduce(struct thread_data *td) { - return !td->o.disable_clat || !td->o.disable_lat || - !td->o.disable_slat || !td->o.disable_bw; + return td->o.disable_clat && td->o.disable_lat && !td->o.disable_slat + && td->o.disable_bw; } static void account_io_completion(struct thread_data *td, struct io_u *io_u, |