mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
properly use parse_time to render test duration
This commit is contained in:
@@ -1082,7 +1082,7 @@ class L3CXProfile(LFCliBase):
|
||||
report_file=None,
|
||||
output_format=None):
|
||||
try:
|
||||
duration_sec=local_realm.parse_time(duration_sec)
|
||||
duration_sec=local_realm.parse_time(duration_sec).seconds
|
||||
except:
|
||||
if (duration_sec is None) or (duration_sec <= 1):
|
||||
raise ValueError("L3CXProfile::monitor wants duration_sec > 1 second")
|
||||
|
||||
@@ -233,7 +233,7 @@ def main():
|
||||
layer3connections=','.join([[*x.keys()][0] for x in ip_var_test.l3cxprofile.json_get('endp')['endpoint']])
|
||||
ip_var_test.l3cxprofile.monitor(col_names=['Name','Tx Rate','Rx Rate','Tx PDUs','Rx PDUs'],
|
||||
report_file=report_f,
|
||||
duration_sec=args.test_duration,
|
||||
duration_sec=ip_var_test.local_realm.parse_time(args.test_duration).seconds,
|
||||
created_cx= layer3connections,
|
||||
ouput_format='excel')
|
||||
ip_var_test.stop()
|
||||
|
||||
Reference in New Issue
Block a user