mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
fix ram segment on wsl
This commit is contained in:
parent
c79108ff0a
commit
f1e9d9ade7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue