Project

General

Profile

Bug #21671

artdaq - Support #21621: Notes from testing the killing of an EB process on a teststand

FileMetric does not write timestamps to metric file

Added by Eric Flumerfelt over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
artdaq-utilities
Start date:
01/11/2019
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

The default configuration for file_metric should print the timestamp in "%c" time format, for example "Fri Jan 11 16:02:59 2019". However, in develop, this was not occurring.

On artdaq-utilities/bugfix/FileMetric_PrintTimestamp, I have updated the getTime_ function and usage to ensure that timestamps are printed according to the provided time_format FHiCL configuration. If an empty string is passed as time_format, timestamps will not be printed at all.

History

#1 Updated by Kurt Biery over 1 year ago

I have verified this fix by running tests on mu2edaq01. I ran tests of a demo system (mediumsystem_with_routing_master) both with and without these code changes, and A) I see the timesstamps appear with the new code and B) it looks like the contents of the metric reports in the files are unaffected by this change.
For grins, I tried specifying 'time_format: ""' in the EventBuilder1.fcl file (metrics block), and the timestamps were suppressed in that case, as expected.
I have merged the code on this branch to the develop branch.

#2 Updated by Eric Flumerfelt over 1 year ago

  • Target version set to artdaq_utilities v1_04_10
  • Status changed from Resolved to Closed
  • Category set to artdaq-utilities
  • Project changed from artdaq to artdaq Utilities


Also available in: Atom PDF