diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/network | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/network b/bin/network index 39f2256..d0d4af3 100755 --- a/bin/network +++ b/bin/network @@ -640,7 +640,9 @@ TEST_TARGET_IPERF = iperf-server.example.com info_parser.set_defaults(func=interface_info) args = parser.parse_args() - if args.cpu_load_fail_threshold != 100 and not args.iperf3: + if (args.func.__name__ is interface_test and + not args.cpu_load_fail_threshold != 100 and + not args.iperf3): parser.error('--cpu-load-fail-threshold can only be set with ' '--iperf3.') |