diff options
author | Thomas White <taw@physics.org> | 2017-06-27 15:14:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-06-27 15:14:50 +0200 |
commit | 8672f2857f18841576dc54b9a64e25837730cddd (patch) | |
tree | c8882ede8c1a9dfdfecce967bee86fb79e3f7476 /src/process_image.c | |
parent | 5bb6d2e69535498a2e4aaf41c51c7566cd15a170 (diff) |
indexamajig: Add --no-non-hits-in-stream
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/process_image.c b/src/process_image.c index f735cb00..498b3398 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -257,7 +257,12 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, return; } free(rn); - goto streamwrite; + + if ( iargs->stream_nonhits ) { + goto streamwrite; + } else { + goto out; + } } /* Index the pattern */ @@ -323,6 +328,7 @@ streamwrite: get_event_string(image.event)); } +out: /* Count crystals which are still good */ time_accounts_set(taccs, TACC_TOTALS); sb_shared->pings[cookie]++; |