eta: only pass real size of jobs_eta
authorJens Axboe <axboe@fb.com>
Fri, 27 Jun 2014 21:15:23 +0000 (15:15 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jun 2014 21:15:23 +0000 (15:15 -0600)
We might send this over the wire, so need sending more than we
actually used.

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

diff --git a/eta.c b/eta.c
index 850a78477771e515600da94a7b0e4872bcc5c88c..0105cda605aa85d513fab2fac7f4412e77007b07 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -581,6 +581,7 @@ struct jobs_eta *get_jobs_eta(int force, size_t *size)
                return NULL;
        }
 
+       *size = sizeof(*je) + strlen((char *) je->run_str) + 1;
        return je;
 }