From 256bc54c13ba8b37eb0e08fdbbd1bbbcfe8a86cc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 19 Nov 2014 09:34:01 -0700 Subject: [PATCH] server: fix missing ETA in some cases 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 --- eta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eta.c b/eta.c index 5be5aed3..a90f1fb4 100644 --- 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); - if (!calc_thread_status(je, 0)) { + if (!calc_thread_status(je, force)) { free(je); return NULL; } -- 2.25.1