From: Martin Peschke Date: Wed, 6 Sep 2006 14:54:45 +0000 (+0200) Subject: [PATCH] bug in btt/output.c X-Git-Tag: blktrace-0.99.2~28 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=aa994ec52b9ab09c445504cb39c12042cecf2d37;p=blktrace.git [PATCH] bug in btt/output.c This patch fixes a copy'n paste bug. --- diff --git a/btt/output.c b/btt/output.c index 9241bda..8c84bc9 100644 --- a/btt/output.c +++ b/btt/output.c @@ -226,7 +226,7 @@ char *d2c_v_q2C(struct d_info *dip, char *s) { double q2c; - if (dip->avgs.i2d.n == 0) return " "; + if (dip->avgs.d2c.n == 0) return " "; q2c = dip->avgs.q2i.avg + dip->avgs.i2d.avg + dip->avgs.d2c.avg; sprintf(s, "%5.1lf%%", AVG(dip->avgs.d2c.avg, q2c));