don't read /proc/loadavg if it's unreadable

pull/85/head
romkatv 6 years ago
parent e028cf5c90
commit 02b86416ec

@ -1018,6 +1018,7 @@ prompt_load() {
load=${${(A)=load}[bucket+1]//,/.}
;;
*)
[[ -r /proc/loadavg ]] || return
_p9k_read_file /proc/loadavg || return
load=${${(A)=_P9K_RETVAL}[bucket]//,/.}
;;

Loading…
Cancel
Save