don't read /proc/loadavg if it's unreadable
parent
e028cf5c90
commit
02b86416ec
|
@ -1018,6 +1018,7 @@ prompt_load() {
|
||||||
load=${${(A)=load}[bucket+1]//,/.}
|
load=${${(A)=load}[bucket+1]//,/.}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
[[ -r /proc/loadavg ]] || return
|
||||||
_p9k_read_file /proc/loadavg || return
|
_p9k_read_file /proc/loadavg || return
|
||||||
load=${${(A)=_P9K_RETVAL}[bucket]//,/.}
|
load=${${(A)=_P9K_RETVAL}[bucket]//,/.}
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue