aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_slurm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-21 15:22:12 +0200
committerThomas White <taw@physics.org>2021-07-22 11:22:18 +0200
commit13d65b9785d1557e29f5f06871d01bad8e76e44c (patch)
treedfd9c52a80639882695eb63b0c87af06ebcbb29d /src/gui_backend_slurm.c
parentd5cf0404a08253f52c6ddf3f6d80e694b9de4e7a (diff)
Clean up shadowed variables
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);