net: fix receiver start time
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 15:22:31 +0000 (16:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 15:22:31 +0000 (16:22 +0100)
Reset epoch/start time to when we get a connection.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/net.c

index ff8e9e4a1cd4ab4552ee39620910e26d1d11c1ce..8957545546b459e60bf3503bdbc73160fd3db0a5 100644 (file)
@@ -522,6 +522,7 @@ static int fio_netio_accept(struct thread_data *td, struct fio_file *f)
                goto err;
        }
 
+       reset_all_stats(td);
        td_set_runstate(td, state);
        return 0;
 err: