From 9a0ab23597ab40be07d58a7ec0914523a832f6e9 Mon Sep 17 00:00:00 2001 From: mushroom <50598611+ms-jpq@users.noreply.github.com> Date: Sun, 5 Apr 2020 20:04:00 -0700 Subject: [PATCH] Update ram_percentage.sh --- scripts/ram_percentage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ram_percentage.sh b/scripts/ram_percentage.sh index f6a9715..6dad418 100755 --- a/scripts/ram_percentage.sh +++ b/scripts/ram_percentage.sh @@ -16,7 +16,7 @@ print_ram_percentage() { ram_percentage_format=$(get_tmux_option "@ram_percentage_format" "$ram_percentage_format") if command_exists "free"; then - free | awk -v format="$ram_percentage_format" '$1 ~ /Mem/ {printf(format, 100*$3/$2)}' + LC_ALL=C free | awk -v format="$ram_percentage_format" '$1 ~ /Mem/ {printf(format, 100*$3/$2)}' elif command_exists "vm_stat"; then # page size of 4096 bytes stats="$(vm_stat)"