[PATCH] blktrace: round up data read to nearest kb
authorJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 09:25:28 +0000 (10:25 +0100)
committerJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 09:25:28 +0000 (10:25 +0100)
blktrace.c

index 4f3c1495768fb9376ce500a5f0aae07554bb6a6d..e8905ebce3491b33b8b6e1e0239407a84dece9ff 100644 (file)
@@ -1126,7 +1126,7 @@ static void show_stats(void)
                        if (!no_stdout)
                                printf("  CPU%3d: %20lu events, %8llu KiB data\n",
                                        tip->cpu, tip->events_processed,
-                                       tip->data_read >> 10);
+                                       (tip->data_read + 1023) >> 10);
                        events_processed += tip->events_processed;
                        data_read += tip->data_read;
                }