projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e0049e
)
t/dedupe: fix off-by 1.024 in bandwidth
author
Jens Axboe
<axboe@fb.com>
Tue, 7 Oct 2014 03:00:10 +0000
(21:00 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 7 Oct 2014 03:00:10 +0000
(21:00 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
t/dedupe.c
patch
|
blob
|
blame
|
history
diff --git
a/t/dedupe.c
b/t/dedupe.c
index 69ebc8a95022209454772c27826936c1be59af0f..b3ab0f9b3e60589781b7088ec28871ea1987b782 100644
(file)
--- a/
t/dedupe.c
+++ b/
t/dedupe.c
@@
-361,7
+361,7
@@
static void show_progress(struct worker_thread *threads, unsigned long total)
this_items *= blocksize;
tdiff = mtime_since_now(&last_tv);
if (tdiff) {
- this_items
/= tdiff
;
+ this_items
= (this_items * 1000) / (tdiff * 1024)
;
printf("%3.2f%% done (%luKB/sec)\r", perc, this_items);
last_nitems = nitems;
fio_gettime(&last_tv, NULL);