[PATCH] blktrace: one more round up of data transfer
authorJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 09:26:23 +0000 (10:26 +0100)
committerJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 09:26:23 +0000 (10:26 +0100)
blktrace.c

index e8905ebce3491b33b8b6e1e0239407a84dece9ff..dd0d5bfb5dbe617a8ba26de7db7adbc812bbd7fb 100644 (file)
@@ -1134,7 +1134,7 @@ static void show_stats(void)
                if (!no_stdout)
                        printf("  Total:  %20llu events (dropped %lu), %8llu KiB data\n",
                                        events_processed, dip->drop_count,
-                                       data_read >> 10);
+                                       (data_read + 1023) >> 10);
        }
 
        if (total_drops)