server: fix missing ETA in some cases
authorJens Axboe <axboe@fb.com>
Wed, 19 Nov 2014 16:34:01 +0000 (09:34 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 19 Nov 2014 16:34:01 +0000 (09:34 -0700)
If we get an ETA request from the client, we pass in 'force' to
ignore any time constraints. But we fail to pass the force through,
so we can fail sending the requested ETA and the client just looks
like nothing is running even though it is.

Signed-off-by: Jens Axboe <axboe@fb.com>
eta.c

diff --git a/eta.c b/eta.c
index 5be5aed3bcc3a6bb397a06dc6314eb5652d66fbf..a90f1fb4763758eaedc9130036a2d60b720fc9bc 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -574,7 +574,7 @@ struct jobs_eta *get_jobs_eta(int force, size_t *size)
        je = malloc(*size);
        memset(je, 0, *size);
 
        je = malloc(*size);
        memset(je, 0, *size);
 
-       if (!calc_thread_status(je, 0)) {
+       if (!calc_thread_status(je, force)) {
                free(je);
                return NULL;
        }
                free(je);
                return NULL;
        }