We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c087e94 commit 482698cCopy full SHA for 482698c
tools/perf/tests/shell/stat_bpf_counters.sh
@@ -11,9 +11,9 @@ compare_number()
11
second_num=$2
12
13
# upper bound is first_num * 110%
14
- upper=$(( $first_num + $first_num / 10 ))
+ upper=$(expr $first_num + $first_num / 10 )
15
# lower bound is first_num * 90%
16
- lower=$(( $first_num - $first_num / 10 ))
+ lower=$(expr $first_num - $first_num / 10 )
17
18
if [ $second_num -gt $upper ] || [ $second_num -lt $lower ]; then
19
echo "The difference between $first_num and $second_num are greater than 10%."
0 commit comments