diff options
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index b25858ad..8f099001 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -2249,8 +2249,8 @@ _p9k_prompt_ram_async() { *) [[ -r /proc/meminfo ]] || return local stat && stat="$(</proc/meminfo)" || return - [[ $stat == (#b)*'MemAvailable:'[[:space:]]#(<->)* ]] || return - free_bytes=$(( $match[1] * 1024 )) + [[ $stat == (#b)*(MemAvailable:|MemFree:)[[:space:]]#(<->)* ]] || return + free_bytes=$(( $match[2] * 1024 )) ;; esac |