t/zbd: Fix a bug in max_open_zones()
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index d8c01d14d594769df3c4e95a1451d9e767bb39af..efa811d2b70e5c23dd48ace87d19eb925fc31916 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -2749,7 +2749,7 @@ static unsigned long add_log_sample(struct thread_data *td,
                        return diff;
        }
 
-       _add_stat_to_log(iolog, elapsed, td->o.log_max != 0, priority_bit);
+       __add_stat_to_log(iolog, ddir, elapsed, td->o.log_max != 0, priority_bit);
 
        iolog->avg_last[ddir] = elapsed - (this_window - iolog->avg_msec);
        return iolog->avg_msec;