From 2f85d4dae578f9d82ac62f0513c95f2f1f07da0e Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 30 Aug 2021 15:40:01 -0600 Subject: [PATCH] test_l3_longevity.py : add debug code for xtop Signed-off-by: Chuck SmileyRekiere --- py-scripts/test_l3_longevity.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/py-scripts/test_l3_longevity.py b/py-scripts/test_l3_longevity.py index ca1094c2..689e4fb0 100755 --- a/py-scripts/test_l3_longevity.py +++ b/py-scripts/test_l3_longevity.py @@ -801,7 +801,9 @@ class L3VariableTime(Realm): if xtop_reported: try: 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: print("detected chanspec with reading chanim_stats, failed reading xtop") # should be only one channel utilization @@ -903,7 +905,9 @@ class L3VariableTime(Realm): if xtop_reported: try: 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: print("detected chanspec with reading chanim_stats, failed reading xtop") # should be only one channel utilization