eta: fix bug where t_rate[] should me m_rate[]
authorJens Axboe <axboe@kernel.dk>
Tue, 21 Aug 2012 13:34:36 +0000 (15:34 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Aug 2012 13:34:36 +0000 (15:34 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
eta.c

diff --git a/eta.c b/eta.c
index e1050b5..f491fea 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -393,7 +393,7 @@ void display_thread_status(struct jobs_eta *je)
        } else if (je->m_iops[0] || je->m_iops[1] || je->t_iops[0] || je->t_iops[1]) {
                p += sprintf(p, ", CR=%d/%d IOPS",
                                        je->t_iops[0] + je->t_iops[1],
-                                       je->m_iops[0] + je->t_iops[1]);
+                                       je->m_iops[0] + je->m_iops[1]);
        }
        if (je->eta_sec != INT_MAX && je->nr_running) {
                char perc_str[32];