diff --git a/tests/scripts/monitor_performance.sh b/tests/scripts/monitor_performance.sh index a55c445..8f4f263 100644 --- a/tests/scripts/monitor_performance.sh +++ b/tests/scripts/monitor_performance.sh @@ -31,7 +31,8 @@ while [ $SECONDS -lt $END_TIME ] && kill -0 $PID 2>/dev/null; do SAMPLES=$((SAMPLES + 1)) TOTAL_RSS=$((TOTAL_RSS + RSS)) TOTAL_VSZ=$((TOTAL_VSZ + VSZ)) - TOTAL_CPU=$((TOTAL_CPU + CPU)) + CPU_INT=$(echo $CPU | cut -d. -f1) + TOTAL_CPU=$((TOTAL_CPU + CPU_INT)) if [ $RSS -gt $MAX_RSS ]; then MAX_RSS=$RSS