mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user