mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix incrementing of variables in cpuUsage.sh
This commit is contained in:
committed by
Rachel Macfarlane
parent
f50a0430c3
commit
b11b93ed8c
@@ -30,7 +30,7 @@ for PID in "$@"; do
|
||||
fi
|
||||
|
||||
PROCESS_BEFORE_TIMES[$ITER]=$PROCESS_TIME_BEFORE
|
||||
((ITER++))
|
||||
((++ITER))
|
||||
done
|
||||
|
||||
# Wait for a second
|
||||
@@ -60,5 +60,5 @@ for PID in "$@"; do
|
||||
|
||||
# Parent script reads from stdout, so echo result to be read
|
||||
echo $CPU_USAGE
|
||||
((ITER++))
|
||||
((++ITER))
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user