Wrap thread_data in thread_segment
[fio.git] / server.c
index 248a2d44899c5c6191f83248209057e1980f01e2..c9b5c2856a80295d529d47e98cab93176149c09e 100644 (file)
--- a/server.c
+++ b/server.c
@@ -950,7 +950,7 @@ static int handle_update_job_cmd(struct fio_net_cmd *cmd)
                return 0;
        }
 
-       td = &threads[tnumber - 1];
+       td = &segments[0].threads[tnumber - 1];
        convert_thread_options_to_cpu(&td->o, &pdu->top);
        send_update_job_reply(cmd->tag, 0);
        return 0;