Skip to content

Commit

Permalink
adjust linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Jan 18, 2024
1 parent 548e0df commit 5ae7282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sysis
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ setRPI() {
if [ "$(free -m | awk 'NR==3{printf "%.0f\n", $2}')" == 0 ]; then
swapRatio="0"
else
# shellcheck disable=SC1083
swapRatio="$(free -m | awk 'NR==3{printf "%.0f\n", $3*100/$2'})"
fi
swapUsage="${swapUse} ${CLRnormal}${CLRwarning}(${swapRatio}%)${CLRnormal}"
Expand Down Expand Up @@ -425,6 +426,7 @@ setLinux() {
if [ "$(free -m | awk 'NR==3{printf "%.0f\n", $2}')" == 0 ]; then
swapRatio="0"
else
# shellcheck disable=SC1083
swapRatio="$(free -m | awk 'NR==3{printf "%.0f\n", $3*100/$2'})"
fi
swapUsage="${swapUse} ${CLRnormal}${CLRwarning}(${swapRatio}%)${CLRnormal}"
Expand Down

0 comments on commit 5ae7282

Please sign in to comment.