projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HOWTO: general consistency
[fio.git]
/
t
/
dedupe.c
diff --git
a/t/dedupe.c
b/t/dedupe.c
index 7856da1a14865e2aaa07e9fea3b9580c9ecee4c6..c3b837f7b698cdedd027f20be12e085ffe21faa1 100644
(file)
--- a/
t/dedupe.c
+++ b/
t/dedupe.c
@@
-14,7
+14,6
@@
#include <fcntl.h>
#include <string.h>
#include <fcntl.h>
#include <string.h>
-#include "../lib/rbtree.h"
#include "../flist.h"
#include "../log.h"
#include "../mutex.h"
#include "../flist.h"
#include "../log.h"
#include "../mutex.h"
@@
-25,6
+24,7
@@
#include "../os/os.h"
#include "../gettime.h"
#include "../fio_time.h"
#include "../os/os.h"
#include "../gettime.h"
#include "../fio_time.h"
+#include "../lib/rbtree.h"
#include "../lib/bloom.h"
#include "debug.h"
#include "../lib/bloom.h"
#include "debug.h"
@@
-334,7
+334,7
@@
static void *thread_fn(void *data)
static void show_progress(struct worker_thread *threads, unsigned long total)
{
unsigned long last_nitems = 0;
static void show_progress(struct worker_thread *threads, unsigned long total)
{
unsigned long last_nitems = 0;
- struct time
val
last_tv;
+ struct time
spec
last_tv;
fio_gettime(&last_tv, NULL);
fio_gettime(&last_tv, NULL);
@@
-363,7
+363,7
@@
static void show_progress(struct worker_thread *threads, unsigned long total)
tdiff = mtime_since_now(&last_tv);
if (tdiff) {
this_items = (this_items * 1000) / (tdiff * 1024);
tdiff = mtime_since_now(&last_tv);
if (tdiff) {
this_items = (this_items * 1000) / (tdiff * 1024);
- printf("%3.2f%% done (%luKB/sec)\r", perc, this_items);
+ printf("%3.2f%% done (%luK
i
B/sec)\r", perc, this_items);
last_nitems = nitems;
fio_gettime(&last_tv, NULL);
} else
last_nitems = nitems;
fio_gettime(&last_tv, NULL);
} else