[PATCH] Don't hide submission latency numbers, even if they are 0.
authorJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 08:40:03 +0000 (10:40 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 08:40:03 +0000 (10:40 +0200)
stat.c

diff --git a/stat.c b/stat.c
index d70c5ca9c7bcf78baeb9c591da10d6f88e10dc02..f3aa2320c0a3c474f9495b9a258fb70ac376decf 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -279,8 +279,6 @@ static int calc_lat(struct io_stat *is, unsigned long *min, unsigned long *max,
        n = (double) is->samples;
        *mean = (double) is->val / n;
        *dev = sqrt(((double) is->val_sq - (*mean * *mean) / n) / (n - 1));
        n = (double) is->samples;
        *mean = (double) is->val / n;
        *dev = sqrt(((double) is->val_sq - (*mean * *mean) / n) / (n - 1));
-       if (!(*min + *max) && !(*mean + *dev))
-               return 0;
 
        return 1;
 }
 
        return 1;
 }