diff options
author | Thomas White <taw@physics.org> | 2021-02-22 16:38:23 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-22 16:38:23 +0100 |
commit | 2dbbb8232cad0ec1dbb5bc8585d0cbbade8ff85c (patch) | |
tree | c1c08889ba121899604732497e5e047d09b86314 /src | |
parent | 3a25a03cc588d132898ee02f353cd0a43724e1cd (diff) |
SLURM: Set 'running' properly
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_backend_slurm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 1c839223..e320b8a7 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -132,7 +132,7 @@ static double indexing_progress(struct slurm_job *job, int *running) } } - if ( n_running > 0 ) *running =1; + *running = (n_running > 0); return (double)(job->n_blocks - n_running) / job->n_blocks; } else { |