aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_slurm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-08 11:22:52 +0200
committerThomas White <taw@physics.org>2020-09-08 16:16:48 +0200
commit1501d5ff2d0eb6d485beed579d5e1051682d5cc5 (patch)
tree1665f0593380553d9a94fe9ac7c5a1f7fd0aef60 /src/gui_backend_slurm.c
parente15687963dd10cbb3a0cca0c4bfd08133b6d4814 (diff)
Local/SLURM BE: Add full path to stream in results
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r--src/gui_backend_slurm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c
index 9dced865..d10c5d4b 100644
--- a/src/gui_backend_slurm.c
+++ b/src/gui_backend_slurm.c
@@ -400,6 +400,7 @@ static void *run_indexing(const char *job_title,
char stdout_file[128];
int job_id;
GFile *stderr_gfile;
+ GFile *stream_gfile;
snprintf(job_name, 127, "%s-%i", job_title, i);
snprintf(file_list, 127, "files-%i.lst", i);
@@ -438,7 +439,10 @@ static void *run_indexing(const char *job_title,
job->stderr_filenames[i] = g_file_get_path(stderr_gfile);
g_object_unref(stderr_gfile);
- streams[i] = strdup(stream_filename);
+ stream_gfile = g_file_get_child(workdir_file,
+ stream_filename);
+ streams[i] = g_file_get_path(stream_gfile);
+ g_object_unref(stream_gfile);
STATUS("Submitted SLURM job ID %i\n", job_id);
}