aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-04-23 16:26:24 +0200
committerThomas White <taw@physics.org>2021-04-23 16:40:56 +0200
commita378be62b61d4c8a67c5523955babbd3f9d17b5c (patch)
tree18062584caeee30145188e9fe1269837e34434ab /src/process_image.c
parent4154688f5e91772f9a9c0d001316886b74686d9e (diff)
indexamajig: Generate a unique filename for ZMQ data
The unique filename is needed by the GUI for looking up results in a stream. Otherwise, the filename is "(null)" for everything and the lookup just returns the first chunk in the stream. The filename is generated based on the unique serial number for each chunk, and is therefore unique across one run of indexamajig regardless of the number of worker processes (-j). This might have to change in future to accommodate jobs run across multiple nodes, if there is any demand for looking at results in one big concatenated stream. This also changes the condition for deciding when to look for a 'real' file, to take into account that there is always a non-NULL filename.
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 188a4829..281cbab5 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -199,6 +199,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
pargs->zmq_data,
pargs->zmq_data_size,
DST_MSGPACK,
+ serial,
iargs->no_image_data,
iargs->no_mask_data);
if ( image == NULL ) return;