aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui_backend_slurm.c2
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 {