From ca2f2d1cf7d1409bd8bb06d8c682daf91fbc6789 Mon Sep 17 00:00:00 2001 From: Furkan Date: Sun, 13 Oct 2024 20:00:48 +0300 Subject: [PATCH] refactor: update timestamp format in DAQJobN1081B _send_store_message method --- src/daq/caen/n1081b.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daq/caen/n1081b.py b/src/daq/caen/n1081b.py index 36b5b37..343023f 100644 --- a/src/daq/caen/n1081b.py +++ b/src/daq/caen/n1081b.py @@ -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(