test_l3_longevity.py : add debug code for xtop

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-08-30 15:40:01 -06:00
parent b6a178a595
commit 2f85d4dae5

View File

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