scripts/nvmf: fixed sar mesure error

Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: I1a4d32de6a83800cdcd65dde3895a36731c52838
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9710
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Maciej Wawryk 2021-10-01 09:09:56 +02:00 committed by Tomasz Zawadzki
parent 890b657e6b
commit e50d1e0f59

View File

@ -589,7 +589,7 @@ class Target(Server):
fh.write(out)
sar_cpu_usage = cpu_number * 100 - sar_idle_sum
with open(os.path.join(results_dir, sar_file_name), "a") as f:
f.write("Total CPU used: %s", % sar_cpu_usage)
f.write("Total CPU used: ".join(sar_cpu_usage))
def measure_pcm_memory(self, results_dir, pcm_file_name):
time.sleep(self.pcm_delay)