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 <axboe@fb.com>
diff --git a/client.c b/client.c
index 7fdae2b..928f7d3 100644
--- a/client.c
+++ b/client.c
@@ -1154,8 +1154,9 @@
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)