client: fix nr_samples
authorJeff Furlong <jeff.furlong@wdc.com>
Fri, 31 Aug 2018 18:26:05 +0000 (18:26 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 31 Aug 2018 18:43:59 +0000 (12:43 -0600)
In convert_iolog_gz() a 32 bit variable is created to store struct cmd_iolog_pdu's 64 bit member.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index a868e3afec8a339e84cc3f9c4120758b51c3bff3..31c7c6495790e91018cface694803ff9bfcefa1e 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1539,7 +1539,7 @@ static struct cmd_iolog_pdu *convert_iolog_gz(struct fio_net_cmd *cmd,
 #ifdef CONFIG_ZLIB
        struct cmd_iolog_pdu *ret;
        z_stream stream;
-       uint32_t nr_samples;
+       uint64_t nr_samples;
        size_t total;
        char *p;