Skip to content

Commit

Permalink
Per #1736, if -out_stat was used for aggregate or aggregate_stat jobs…
Browse files Browse the repository at this point in the history
…, do not write output to the -out or log output.
  • Loading branch information
JohnHalleyGotway committed Apr 1, 2021
1 parent 804b1ac commit 412374e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions met/src/tools/core/stat_analysis/stat_analysis_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,10 @@ void do_job_aggr(const ConcatString &jobstring, LineDataFile &f,

//
// Write the ASCII Table and the job command line
// If -out_stat was specified, do not write output
//
write_jobstring(jobstring, sa_out);
write_table(out_at, sa_out);
if(!job.stat_out) write_table(out_at, sa_out);

return;
}
Expand Down Expand Up @@ -911,9 +912,10 @@ void do_job_aggr_stat(const ConcatString &jobstring, LineDataFile &f,

//
// Write the ASCII Table and the job command line
// If -out_stat was specified, do not write output
//
write_jobstring(jobstring, sa_out);
write_table(out_at, sa_out);
if(!job.stat_out) write_table(out_at, sa_out);

return;
}
Expand Down

0 comments on commit 412374e

Please sign in to comment.