From a89d5319371a3907df7eb4fa13cef899b09ec374 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 13 Oct 2014 11:33:27 -0600 Subject: [PATCH] client: partial revert of 9899aff3e345 We do need the client->nr_stat, otherwise things break when group reporting is not used. We need it to keep track of how many thread_stat's we are expecting to receive from each client. Signed-off-by: Jens Axboe --- client.c | 3 ++- client.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 7fdae2ba..928f7d38 100644 --- a/client.c +++ b/client.c @@ -1154,8 +1154,9 @@ static void handle_start(struct fio_client *client, struct fio_net_cmd *cmd) client->state = Client_started; client->jobs = le32_to_cpu(pdu->jobs); + client->nr_stat = le32_to_cpu(pdu->stat_outputs); - sum_stat_clients++; + sum_stat_clients += client->nr_stat; } static void handle_stop(struct fio_client *client, struct fio_net_cmd *cmd) diff --git a/client.h b/client.h index 5be84b60..d632f468 100644 --- a/client.h +++ b/client.h @@ -47,6 +47,7 @@ struct fio_client { int is_sock; int disk_stats_shown; unsigned int jobs; + unsigned int nr_stat; int error; int signal; int ipv6; -- 2.25.1