mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-26 00:41:57 +00:00
work around bugs in WSL where it reports more swap being used than the total available (#1724)
This commit is contained in:
parent
0f8a77d47d
commit
3d994b033b
1 changed files with 2 additions and 0 deletions
|
@ -3399,6 +3399,8 @@ _p9k_prompt_swap_async() {
|
|||
(( used_bytes *= 1024 ))
|
||||
fi
|
||||
|
||||
(( used_bytes >= 0 || (used_bytes = 0) ))
|
||||
|
||||
_p9k_human_readable_bytes $used_bytes
|
||||
[[ $_p9k__ret != $_p9k__swap_used ]] || return
|
||||
_p9k__swap_used=$_p9k__ret
|
||||
|
|
Loading…
Reference in a new issue