From 2219e094d6555cfcf4d11b5f4bbd6585511ee2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik.tjader@gmail.com> Date: Wed, 4 Mar 2015 08:45:37 +0100 Subject: [PATCH] Small fixes and no TABS mixed in with spaces --- UDP-client-server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UDP-client-server.py b/UDP-client-server.py index 1e9ed8a..fbab2a3 100755 --- a/UDP-client-server.py +++ b/UDP-client-server.py @@ -160,7 +160,7 @@ def udp_client_send(UDP_DEST_IP, UDP_DEST_PORT, padding)).encode("utf-8"), (UDP_DEST_IP, UDP_DEST_PORT)) packet_count_snd = packet_count_snd + 1 -#WAIT 5SEC FOR ALL PACKETS TO ARRIVE +#WAIT FOR ALL PACKETS TO ARRIVE packet_wait_time = 3 time.sleep(packet_wait_time) # Perhaps create a custom object where we store the statistics? @@ -234,10 +234,10 @@ def udp_client_send(UDP_DEST_IP, UDP_DEST_PORT, print("MOS: ", mos) post = { - #"timestamp" : int(time.time()), + #"timestamp" : int(time.time()), #Not needed since first 4bits of _id is timestamp - "stability" : mos, - "position" : False # Position appended here + "stability" : mos, + "position" : False # Position appended here } DBTableStability.insert(post); -- GitLab