test_l3_longevity.py : modified to be a float minus a float

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-09-07 14:57:08 -06:00
parent 426ed83005
commit 05a419315a
2 changed files with 6 additions and 6 deletions

View File

@@ -800,8 +800,8 @@ class L3VariableTime(Realm):
if xtop_reported:
try:
xtop = split_row[7]
print("xtop {xtop}".format(xtop=xtop))
channel_utilization = 100 - float(xtop)
print("xtop 5g {xtop}".format(xtop=xtop))
channel_utilization = float(100) - float(xtop)
print("channel_utilization {utilization}".format(utilization=channel_utilization))
except:
print("detected chanspec with reading chanim_stats, failed reading xtop")
@@ -904,9 +904,9 @@ class L3VariableTime(Realm):
if xtop_reported:
try:
xtop = split_row[7]
print("xtop {xtop}".format(xtop=xtop))
channel_utilization = 100 - float(xtop)
print("channel_utilization {utilization}".format(utilization=channel_utilization))
print("xtop 2g {xtop}".format(xtop=xtop))
channel_utilization = float(100) - float(xtop)
print("channel_utilization 2g {utilization}".format(utilization=channel_utilization))
except:
print("detected chanspec with reading chanim_stats, failed reading xtop")
# should be only one channel utilization