download_size = 0
upload_size = 0
eta = 0
+ timestamp = datetime.datetime(2010, 04, 30)
- return (num_peers, dht, download_speed, upload_speed,
- download_size, upload_size, eta)
+ return (timestamp, num_peers, dht, download_speed, upload_speed, download_size, upload_size, eta)
def parse_last_status_line(self, line):
try:
return []
return self.parse_status_line(line)
- def cb_print(self, num_peers, dht,
+ def cb_print(self, timestamp, num_peers, dht,
download_speed, upload_speed,
download_size, upload_size,
eta_seconds):
if self.is_status_line(line) == False:
continue
- (num_peers, dht, download_speed, upload_speed, download_size, upload_size, eta_seconds) = self.parse_status_line(line)
+ (timestamp, num_peers, dht, download_speed, upload_speed, download_size, upload_size, eta_seconds) = self.parse_status_line(line)
logging.debug("(%d, %d, %d kb/s, %d kb/s, %d bytes, %d bytes)" % (num_peers, dht, download_speed, upload_speed, download_size, upload_size))