Skip to content

Commit a15c505

Browse files
committed
LatencyMeasurer: Update measurement data structure
1 parent d3316cb commit a15c505

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zbnt/LatencyMeasurer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def receive_measurement(self, data):
5757

5858
time = decode_u64(data[0:8])
5959

60-
last_ping = decode_u32(data[8:12])
61-
last_pong = decode_u32(data[12:16])
60+
num_pings = decode_u64(data[8:16])
61+
ping_time = decode_u32(data[16:20])
62+
pong_time = decode_u32(data[20:24])
6263

63-
num_ping_pongs = decode_u64(data[16:24])
6464
num_lost_pings = decode_u64(data[24:32])
6565
num_lost_pongs = decode_u64(data[32:40])
6666

67-
self.measurement_handler(self.id, (time, last_ping, last_pong, num_ping_pongs, num_lost_pings, num_lost_pongs))
67+
self.measurement_handler(self.id, (time, num_pings, ping_time, pong_time, num_lost_pings, num_lost_pongs))

0 commit comments

Comments
 (0)