mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-05 07:31:31 +05:30
Replace bc commands (#79)
This commit is contained in:
parent
52f048b2df
commit
8584f28413
1 changed files with 2 additions and 2 deletions
4
yabs.sh
4
yabs.sh
|
|
@ -533,14 +533,14 @@ elif [ -z "$SKIP_FIO" ]; then
|
|||
free_space=$(df -Th | grep -w $long | grep -i zfs | awk '{print $5}' | head -c -2)
|
||||
|
||||
if [[ $size_b == 'T' ]]; then
|
||||
free_space=$(bc <<< "$free_space*1024")
|
||||
free_space=$((free_space * 1024))
|
||||
size_b='G'
|
||||
fi
|
||||
|
||||
if [[ $(df -Th | grep -w $long) == *"zfs"* ]];then
|
||||
|
||||
if [[ $size_b == 'G' ]]; then
|
||||
if [[ $(echo "$free_space < $mul_spa" | bc) -ne 0 ]];then
|
||||
if ((free_space < mul_spa)); then
|
||||
warning=1
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue