Skip to content

Commit da46d0b

Browse files
committed
fix typos
Signed-off-by: Adam Gardner <adam@agardner.net>
1 parent 0554c95 commit da46d0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ echo "span_id: ${span_id}"
99
main_time_start=0
1010
echo "main time_start: ${time_start}"
1111

12-
counter=0
13-
limit=5
12+
counter=1
13+
limit=3
1414

15-
while [ $counter -lt $limit ]
15+
while [ $counter -le $limit ]
1616
do
1717
# This is unique to this span
1818
sub_span_id=$(hexdump -vn8 -e'4/4 "%08X" 1 "\n"' /dev/urandom)
1919
time_start=$SECONDS
2020
echo "loop: ${counter}"
2121
sleep 1
2222
time_end=$SECONDS
23-
duration=$$(( $time_end - $time_start ))
23+
duration=$(( $time_end - $time_start ))
2424
counter=$(( $counter + 1 ))
2525
echo "loop time_start: ${time_start}. time_end: ${time_end}. duration: ${duration}"
2626

0 commit comments

Comments
 (0)