shfmt: fix shell formatting

Symptoms:
```
extras/dialer/time-scope-probe-cgroup:31:18: arithmetic expressions must consist of names and numbers
extras/dialer/time-scope-probe-cgroup: run shfmt -i 4 -w extras/dialer/time-scope-probe-cgroup
extras/dialer/time-scope-probe-proc:28:18: arithmetic expressions must consist of names and numbers
extras/dialer/time-scope-probe-proc: run shfmt -i 4 -w extras/dialer/time-scope-probe-proc
extras/in_parallel.sh:29:16: arithmetic expressions must consist of names and numbers
extras/in_parallel.sh: run shfmt -i 4 -w extras/in_parallel.sh
```

Visible on https://circleci.com/gh/kinvolk/scope/980
This commit is contained in:
Alban Crequy
2017-05-19 16:43:26 +02:00
parent 0ee3a3fa8e
commit 0096688415
3 changed files with 4 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ TIME_K2=$(awk '/system/ {print $2}' "${cpuacct_stat}")
TIME_T2=$((TIME_U2 + TIME_K2))
echo "utime;stime;total_time"
for ((i = 0; i < "$interval_num"; i++)); do
for ((i = 0; i < interval_num; i++)); do
sleep "$interval_sleep"
TIME_U1=$TIME_U2
TIME_K1=$TIME_K2

View File

@@ -25,7 +25,7 @@ TIME_K2=$(gawk '{print $15"*10"}' <"/proc/$(pidof scope-probe)/stat" | bc)
TIME_T2=$((TIME_U2 + TIME_K2))
echo "utime;stime;total_time"
for ((i = 0; i < "$interval_num"; i++)); do
for ((i = 0; i < interval_num; i++)); do
sleep "$interval_sleep"
TIME_U1=$TIME_U2
TIME_K1=$TIME_K2

View File

@@ -26,7 +26,8 @@ echo Doing "$INPUTS"
for INPUT in $INPUTS; do
START=$(date +%s)
$COMMAND "$INPUT"
RUNTIME=$(($(date +%s) - START))
END=$(date +%s)
RUNTIME=$((END - START))
python "../tools/sched" time "$INPUT" "$RUNTIME"
done