Compare commits

...
Author SHA1 Message Date
Pete Fisher 27aa43f44d fixed time on ilink2 audit 2020-09-09 12:16:57 -04:00
Pedro Pinto 19e087aa69 Fixed time reporting in iLink3. 2020-09-09 10:58:34 -04:00
2 changed files with 3 additions and 3 deletions

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ def get_value(json_key):
# Column 1 - Sending Timestamps
def SendingTimeEpoch(epochtime): #1
#TIME = time.strftime('%Y%m%d-%H:%M:%S.{}'.format(epochtime/1000000000), time.gmtime(epochtime/1000000000))
TIME = datetime.datetime.fromtimestamp(epochtime/1000000000).strftime('%Y%m%d-%H:%M:%S.%f')
TIME = datetime.datetime.fromtimestamp(int(epochtime) / 1e9).strftime('%Y%m%d-%H:%M:%S.%f')
return TIME
# Column 2 - Message Direction
@@ -402,4 +402,4 @@ with file_opener(args.json_log) as json_file:
+1 -1
View File
@@ -18,7 +18,7 @@ struct TimeKeeper {
uint64_t now() const {
auto now = utils::TimeStamp::now();
auto delta = now - start;
return unix_time + delta.microseconds();
return unix_time + delta.nanoseconds();
}
};