From deef5bb89a60e225f12e12c513e98a96806ea4ac Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 16 Dec 2020 10:55:54 -0700 Subject: [PATCH] lf_cisco_power.py : updates for Beacon --- lf_cisco_power.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lf_cisco_power.py b/lf_cisco_power.py index c6b7ad76..7ea6946a 100755 --- a/lf_cisco_power.py +++ b/lf_cisco_power.py @@ -513,13 +513,13 @@ def main(): worksheet.set_column(col, col, 10) # Set width worksheet.write(row, col, 'Controller\n dBm', dblue_bold); col += 1 worksheet.set_column(col, col, 10) # Set width - worksheet.write(row, col, 'Calc dBm\n Beacon', dblue_bold); col += 1 + worksheet.write(row, col, 'Calculated\n dBm\n Beacon', dblue_bold); col += 1 worksheet.set_column(col, col, 14) # Set width - worksheet.write(row, col, 'Diff\n Cntl dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1 + worksheet.write(row, col, 'Diff\nController dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1 worksheet.set_column(col, col, 10) # Set width - worksheet.write(row, col, 'Calc dBm\n Combined', dblue_bold); col += 1 - worksheet.set_column(col, col, 10) # Set width - worksheet.write(row, col, 'Diff dBm\n Combined', dblue_bold); col += 1 + worksheet.write(row, col, 'Calculated\n dBm\n Combined', dblue_bold); col += 1 + worksheet.set_column(col, col, 14) # Set width + worksheet.write(row, col, 'Diff\nController dBm\n & Combined', dblue_bold); col += 1 worksheet.set_column(col, col, 12) # Set width worksheet.write(row, col, "PASS /\nFAIL\n( += %s dBm)"%(pf_dbm), dgreen_bold); col += 1 worksheet.set_column(col, col, 24) # Set width @@ -1309,7 +1309,7 @@ def main(): diff_dbm = calc_dbm - cc_dbmi diff_dbm_beacon = calc_dbm_beacon - cc_dbmi if(int(abs(diff_dbm_beacon)) > int(args.beacon_dbm_diff)): - w_tot = "WARNING: Controller and beacon power diff greater then +/- {} dBm".format(args.beacon_dbm_diff) + w_tot = "WARNING: Controller and beacon power different by greater then +/- {} dBm".format(args.beacon_dbm_diff) pfs = "PASS" pfrange = pf_dbm;