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 4935768 commit 4b80948Copy full SHA for 4b80948
script.sh
@@ -35,7 +35,7 @@ used_swap=$(LANG=C free | grep Swap: | awk '{print $3}')
35
swap_perc=$(LANG=C free -b | awk '/Swap:/ {printf "%.0f", ($3/$2)*100}')
36
37
if [ "$total_swap" -gt 0 ]; then
38
- swap_perc=$(free -b | awk '/Swap:/ {printf "%.0f", ($3/$2)*100}')
+ swap_perc=$(LANG=C free -b | awk '/Swap:/ {printf "%.0f", ($3/$2)*100}')
39
else
40
swap_perc=0
41
fi
0 commit comments