Skip to content

Commit

Permalink
timestamp key as int
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzverev committed Oct 4, 2023
1 parent 736ef26 commit 7c7e582
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recon_lw/recon_lw.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def ts_to_epoch_nano_str(ts):


def time_stamp_key(ts):
nanos_str = str(ts["nano"]).zfill(9)
return str(ts["epochSecond"]) + "." + nanos_str
return ts["epochSecond"] + 1_000_000_000 * ts["nano"]
#nanos_str = str(ts["nano"]).zfill(9)
#return str(ts["epochSecond"]) + "." + nanos_str


def time_index_add(key, m, time_index):
Expand Down

0 comments on commit 7c7e582

Please sign in to comment.