diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-09-26 13:33:14 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-09-26 13:33:14 +0300 |
commit | f52a7f25701a42bda48be32e0649c86dd291fbb2 (patch) | |
tree | f3dd14c98b7558aa193bc5b6e059b161fdbe24c1 /powerlevel9k.zsh-theme | |
parent | 43a6079d8396611e6d3693c1766b79b0356af65d (diff) |
Corrected calculation of used swap under linux.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 428db392..c707923e 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -709,7 +709,7 @@ prompt_ram() { else swap_total=$(grep -o -E "SwapTotal:\s+[0-9]+" /proc/meminfo | grep -o "[0-9]*") swap_free=$(grep -o -E "SwapFree:\s+[0-9]+" /proc/meminfo | grep -o "[0-9]*") - swap_used=$(( swap_free - swap_total )) + swap_used=$(( swap_total - swap_free )) base=K fi |