Set genesis time when running only network clients
authorJens Axboe <axboe@fb.com>
Sun, 12 Oct 2014 19:11:35 +0000 (13:11 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 12 Oct 2014 19:11:35 +0000 (13:11 -0600)
Otherwise we get potentially no or erratic ETA reporting,
depending on the system.

Signed-off-by: Jens Axboe <axboe@fb.com>
fio.c

diff --git a/fio.c b/fio.c
index 7e6b06d..9adc29a 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -43,6 +43,8 @@ int main(int argc, char *argv[], char *envp[])
        fio_time_init();
 
        if (nr_clients) {
+               set_genesis_time();
+
                if (fio_start_all_clients())
                        return 1;
                return fio_handle_clients(&fio_client_ops);