Skip to content

Commit fd2d3e5

Browse files
authored
Merge pull request #284 from ndokos/wip-pidof-fix
Fix condition for warning of already running tools.
2 parents 65abb91 + 48b8c27 commit fd2d3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/tool-scripts/kvm-spinlock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function safe_kill() {
264264
done
265265
# hack: individual tools will have a different number of pids running.
266266
# we might just delete the warning if it gets too cumbersome.
267-
if [ $len -ge 4 -o $len -ge 3 -a $tool!="turbostat" ] ;then
267+
if [[ $len > 4 || ($len > 3 && $tool != "turbostat") ]] ;then
268268
warn_log "Too many pids for $tool: $pidlist -- maybe old tools running? Use pbench-kill-tools."
269269
fi
270270

0 commit comments

Comments
 (0)