client/server: fixup "All clients" reporting
[fio.git] / server.c
index 72def7e003ee938a1c41f3d4a7e31d14b4ce3ce3..33b80d68620d103eb52feb93aafca7b765d9ef98 100644 (file)
--- a/server.c
+++ b/server.c
@@ -336,12 +336,15 @@ static int handle_job_cmd(struct fio_net_cmd *cmd)
        struct cmd_end_pdu epdu;
        int ret;
 
+       stat_number = 0;
+
        if (parse_jobs_ini(buf, 1, 0)) {
                fio_server_send_quit_cmd();
                return -1;
        }
 
        spdu.jobs = cpu_to_le32(thread_number);
+       spdu.stat_outputs = cpu_to_le32(stat_number);
        fio_net_send_cmd(server_fd, FIO_NET_CMD_START, &spdu, sizeof(spdu), 0);
 
        ret = fio_backend();