diff --git a/__init__.py b/__init__.py index a291431..3bd50cd 100755 --- a/__init__.py +++ b/__init__.py @@ -207,8 +207,6 @@ def unhex(s): def pp(value, bits=16): - if type(value) == type(''): - value, _ = unpack(' %s:%d (%s)' % (self.firstframe.src_addr, - self.firstframe.sport, - self.firstframe.dst_addr, - self.firstframe.dport, - time.ctime(self.firstframe.time)) + print ' %s:%d -> %s:%d (%s.%06dZ)' % (self.firstframe.src_addr, + self.firstframe.sport, + self.firstframe.dst_addr, + self.firstframe.dport, + time.strftime('%Y-%m-%dT%T', time.gmtime(self.firstframe.time)), + self.firstframe.time_usec) if self.parts: dl = len(self.parts[-1])