def add_status_message_datetime(self, cs_id, dt, peer_num, dht, download_speed, upload_speed, download_size, upload_size, eta_time):
timestamp = float(julian.datetimeToJulian(dt));
- eta = datetime.timedelta(eta_time[0], eta_time[3], 0, 0, eta_time[2], eta_time[1], 0)
- eta_seconds = eta.days * 24 * 3600 + eta.seconds
+ # adriana >:)
+ #eta = datetime.timedelta(eta_time[0], eta_time[3], 0, 0, eta_time[2], eta_time[1], 0)
+ #eta_seconds = eta.days * 24 * 3600 + eta.seconds
+ eta_seconds = eta_time #!!! already in seconds (tribler's fault) !!!!
self.dba.insert_status_messages(cs_id, timestamp, peer_num, dht, download_speed, upload_speed, download_size, upload_size, eta_seconds)
def add_verbose_message(self, cs_id, date, time, peer_ip, peer_port, message_type, index, begin, length, listen_port):