summaryrefslogtreecommitdiff
path: root/ram-widget
diff options
context:
space:
mode:
Diffstat (limited to 'ram-widget')
-rw-r--r--ram-widget/ram-widget.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/ram-widget/ram-widget.lua b/ram-widget/ram-widget.lua
index a5414c8..d8cb11f 100644
--- a/ram-widget/ram-widget.lua
+++ b/ram-widget/ram-widget.lua
@@ -48,7 +48,7 @@ local function worker(args)
return math.floor(value / (total+total_swap) * 100 + 0.5) .. '%'
end
- watch('bash -c "free | grep -z Mem.*Swap.*"', 1,
+ watch('bash -c "LANGUAGE=en_US.UTF-8 free | grep -z Mem.*Swap.*"', 1,
function(widget, stdout, stderr, exitreason, exitcode)
total, used, free, shared, buff_cache, available, total_swap, used_swap, free_swap =
stdout:match('(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*Swap:%s*(%d+)%s*(%d+)%s*(%d+)')