We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0554c95 commit da46d0bCopy full SHA for da46d0b
samples/script.sh
@@ -9,18 +9,18 @@ echo "span_id: ${span_id}"
9
main_time_start=0
10
echo "main time_start: ${time_start}"
11
12
-counter=0
13
-limit=5
+counter=1
+limit=3
14
15
-while [ $counter -lt $limit ]
+while [ $counter -le $limit ]
16
do
17
# This is unique to this span
18
sub_span_id=$(hexdump -vn8 -e'4/4 "%08X" 1 "\n"' /dev/urandom)
19
time_start=$SECONDS
20
echo "loop: ${counter}"
21
sleep 1
22
time_end=$SECONDS
23
- duration=$$(( $time_end - $time_start ))
+ duration=$(( $time_end - $time_start ))
24
counter=$(( $counter + 1 ))
25
echo "loop time_start: ${time_start}. time_end: ${time_end}. duration: ${duration}"
26
0 commit comments