Skip to content

Commit df436d1

Browse files
committed
Python style improvement
1 parent f90a2c2 commit df436d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/mx.sdk/mx_sdk_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def run_stage(self, vm, stage, server_command, out, err, cwd, nonZeroIsFatal):
569569
mx.abort("The server application unexpectedly ended with return code " + str(returnCode))
570570

571571
if self.measureLatency:
572-
if not [c.get("requests-per-second") for c in self.loadConfiguration("latency") if c.get("requests-per-second")]:
572+
if not any([c.get("requests-per-second") for c in self.loadConfiguration("latency")]):
573573
# Calibrate for latency measurements (without RSS tracker) if no fixed request rate has been provided in the config
574574
with EmptyEnv(self.get_env()):
575575
measurementThread = self.startDaemonThread(BaseMicroserviceBenchmarkSuite.calibrateLatencyTestInBackground, [self])

0 commit comments

Comments
 (0)