mutex: fixup fio_mutex_down_timeout()
[fio.git] / server.c
index 4d4c2f28a539b32b958af8140c4739d43f4b94f9..5871228d04b8878dd27c1514ea542055cfad9d4e 100644 (file)
--- a/server.c
+++ b/server.c
@@ -715,7 +715,7 @@ static int handle_send_eta_cmd(struct fio_net_cmd *cmd)
         * Fake ETA return if we don't have a local one, otherwise the client
         * will end up timing out waiting for a response to the ETA request
         */
-       je = get_jobs_eta(1, &size);
+       je = get_jobs_eta(true, &size);
        if (!je) {
                size = sizeof(*je);
                je = calloc(1, size);
@@ -1445,7 +1445,7 @@ int fio_server_get_verify_state(const char *name, int threadnumber,
        /*
         * Wait for the backend to receive the reply
         */
-       if (fio_mutex_down_timeout(&rep->lock, 10)) {
+       if (fio_mutex_down_timeout(&rep->lock, 10000)) {
                log_err("fio: timed out waiting for reply\n");
                goto fail;
        }