|
|
@ -376,10 +376,8 @@ prompt_hdd_usage() {
|
|
|
|
|
|
|
|
|
|
|
|
if [ $level -le $POWERLEVEL9K_HDD_USAGE_WARNING_LEVEL ]; then
|
|
|
|
if [ $level -le $POWERLEVEL9K_HDD_USAGE_WARNING_LEVEL ]; then
|
|
|
|
current_state='warning'
|
|
|
|
current_state='warning'
|
|
|
|
message="$message left"
|
|
|
|
|
|
|
|
elif [ $level -le $POWERLEVEL9K_HDD_USAGE_CRITICAL_LEVEL ]; then
|
|
|
|
elif [ $level -le $POWERLEVEL9K_HDD_USAGE_CRITICAL_LEVEL ]; then
|
|
|
|
current_state='critical'
|
|
|
|
current_state='critical'
|
|
|
|
message="$message left"
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Draw the prompt_segment
|
|
|
|
# Draw the prompt_segment
|
|
|
|