arg changes

This commit is contained in:
Dipti
2021-01-28 13:33:01 -08:00
parent e9e92ae76b
commit 4aec4c0ec4
2 changed files with 6 additions and 5 deletions

View File

@@ -1158,8 +1158,6 @@ class L3CXProfile(BaseProfile):
raise ValueError("Monitor needs a list of Layer 3 connections")
if (monitor_interval is None) or (monitor_interval < 1):
raise ValueError("L3CXProfile::monitor wants monitor_interval >= 1 second")
#if col_names is None:
#raise ValueError("L3CXProfile::monitor wants a list of column names to monitor")
if output_format is not None:
if output_format.lower() != report_file.split('.')[-1]:
if output_format.lower() != 'excel':
@@ -1221,7 +1219,9 @@ class L3CXProfile(BaseProfile):
old_cx_rx_values = new_cx_rx_values
#write csv file here - open, write, and close file
time.sleep(monitor_interval)
print(value_map)
if self.debug:
print("Printing value map...")
print(value_map)
#organize data
full_test_data_list = []

View File

@@ -164,12 +164,13 @@ python3 ./test_ipv4_variable_time.py
--ssid netgear
--password admin123
--test_duration 2m (default)
--a_min 1000
--a_min 3000
--b_min 1000
--ap "00:0e:8e:78:e1:76"
--output_format csv
--report_file ~/Documents/results.csv (Example of csv file output - please use another extension for other files)
--compared_report ~/Documents/results_prev.csv (Example of csv file retrieval - please use another extension for other files)
--compared_report ~/Documents/results_prev.csv (Example of csv file retrieval - please use another extension for other files) - UNDER CONSTRUCTION
--col_names ['name','tx bytes', 'rx bytes','dropped']
--debug
''')