Skip to content

Commit

Permalink
dnet: display time in H:M:S format, not Y:M:D:H:M:S:NS
Browse files Browse the repository at this point in the history
  • Loading branch information
lunar-mining committed Oct 19, 2023
1 parent 2ab5b30 commit 8b3c153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def handle_event(self, event):
addr = chan.get("addr")
t = (dt.datetime
.fromtimestamp(int(nano)/1000000000)
.strftime('%Y-%m-%d %H:%M:%S.%f'))
.strftime('%H:%M:%S'))
self.info.update_msg(addr, (t, event, cmd))
case "recv":
nano = info.get("time")
Expand All @@ -107,7 +107,7 @@ def handle_event(self, event):
addr = chan.get("addr")
t = (dt.datetime
.fromtimestamp(int(nano)/1000000000)
.strftime('%Y-%m-%d %H:%M:%S.%f'))
.strftime('%H:%M:%S'))
self.info.update_msg(addr, (t, event, cmd))
case "inbound_connected":
addr = info["addr"]
Expand Down

0 comments on commit 8b3c153

Please sign in to comment.