Skip to content
Snippets Groups Projects
Commit c6feeb9e authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

sniffer: correctly format time, and print time.time(), too

parent fd42ae8d
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,8 @@ import ipaaca
def my_update_handler(iu, event_type, local):
t=time.localtime()
print str(t.tm_hour)+':'+str(t.tm_min)+':'+str(t.tm_sec),
print "%02d:%02d:%02d"%(t.tm_hour, t.tm_min,t.tm_sec),
print time.time(),
print(event_type+': '+unicode(iu))
cats = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment