aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_slurm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r--src/gui_backend_slurm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c
index 801921ea..aeabad3d 100644
--- a/src/gui_backend_slurm.c
+++ b/src/gui_backend_slurm.c
@@ -166,15 +166,15 @@ static double indexing_progress(struct slurm_job *job, int *running)
} else {
- int i;
+ int ijob;
int n_proc = 0;
- for ( i=0; i<job->n_blocks; i++ ) {
+ for ( ijob=0; ijob<job->n_blocks; ijob++ ) {
char tmp[128];
char *stderr_filename;
- snprintf(tmp, 127, "stderr-%i.log", i);
+ snprintf(tmp, 127, "stderr-%i.log", ijob);
stderr_filename = relative_to_cwd(job->workdir, tmp);
n_proc += read_number_processed(stderr_filename);