err_msg = self.get_client_status(msg[1], line_parts)
response = {}
print len(line_parts)
- if len(line_parts[0]) >= 6:
- #response[TIMESTAMP] = line_parts[0]
- response[NUM_PEERS] = line_parts[0][0]
- response[DHT] = line_parts[0][1]
- response[DL_SPEED] = line_parts[0][2]
- response[UP_SPEED] = line_parts[0][3]
- response[DL_SIZE] = line_parts[0][4]
- response[ETA] = line_parts[0][5]
+ if len(line_parts[0]) >= 7:
+ response[TIMESTAMP] = line_parts[0][0]
+ response[NUM_PEERS] = line_parts[0][1]
+ response[DHT] = line_parts[0][2]
+ response[DL_SPEED] = line_parts[0][3]
+ response[UP_SPEED] = line_parts[0][4]
+ response[DL_SIZE] = line_parts[0][5]
+ response[ETA] = line_parts[0][6]
else:
err_msg = "Error: wrong message type";