mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 21:12:29 -04:00
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes, since perf/urgent is already upstream. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -11,9 +11,9 @@ compare_number()
|
||||
second_num=$2
|
||||
|
||||
# upper bound is first_num * 110%
|
||||
upper=$(( $first_num + $first_num / 10 ))
|
||||
upper=$(expr $first_num + $first_num / 10 )
|
||||
# lower bound is first_num * 90%
|
||||
lower=$(( $first_num - $first_num / 10 ))
|
||||
lower=$(expr $first_num - $first_num / 10 )
|
||||
|
||||
if [ $second_num -gt $upper ] || [ $second_num -lt $lower ]; then
|
||||
echo "The difference between $first_num and $second_num are greater than 10%."
|
||||
|
||||
Reference in New Issue
Block a user