Skip to content

Commit

Permalink
refactor: update timestamp format in DAQJobN1081B _send_store_message…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
furkan-bilgin committed Oct 13, 2024
1 parent 9091a0f commit ca2f2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daq/caen/n1081b.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _poll_sections(self):
def _send_store_message(self, data: dict, section):
keys = ["timestamp", *[f"lemo_{x['lemo']}" for x in data["counters"]]]
values = [
datetime.now().timestamp(),
int(datetime.now().timestamp() * 1000), # unix timestamp in milliseconds
*[x["value"] for x in data["counters"]],
]
self.message_out.put(
Expand Down

0 comments on commit ca2f2d1

Please sign in to comment.