fix type conversion for comparison operation

This commit is contained in:
hardy
2021-12-23 11:58:21 +01:00
parent 984338e991
commit 478f67e47d
+2 -2
View File
@@ -2097,9 +2097,9 @@ class OaiCiTest():
else:
bit_too_low_msg=''
lock.acquire()
if (br_loss < self.iperf_bitrate_threshold) or (float(pl) > float(self.iperf_packetloss_threshold)):
if (float(br_loss) < float(self.iperf_bitrate_threshold)) or (float(pl) > float(self.iperf_packetloss_threshold)):
statusQueue.put(1)
elif (br_loss < self.iperf_bitrate_threshold) and (float(pl) > float(self.iperf_packetloss_threshold)):
elif (float(br_loss) < float(self.iperf_bitrate_threshold)) and (float(pl) > float(self.iperf_packetloss_threshold)):
statusQueue.put(-1)
else:
statusQueue.put(0)