Skip to content

Commit

Permalink
FIX: double percent no longer needed in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
reefland committed Jul 17, 2023
1 parent 9a8c93c commit b75a4c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 36-diskstatus
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ __colorize_percent_left() {
# If a percent_left determined, format and colorize it
if [[ -n ${percent_left} ]]; then
# Set lifetime left color based on status (NVMe provide this)
life="${dim} [${undim}${green}${percent_left}%%${dim}]${undim}"
life="${dim} [${undim}${green}${percent_left}%${dim}]${undim}"
if [[ "${percent_left}" -lt "${LIFE_WARN}" ]]; then
# Set to yellow warning
life="${dim} [${undim}${yellow}${percent_left}%%${dim}]${undim}"
life="${dim} [${undim}${yellow}${percent_left}%${dim}]${undim}"
elif [[ "${percent_left}" -lt "${LIFE_CRIT}" ]]; then
# Set to red critical
life="${dim} [${undim}${red}${percent_left}%%${dim}]${undim}"
life="${dim} [${undim}${red}${percent_left}%${dim}]${undim}"
fi
fi
}
Expand Down

0 comments on commit b75a4c5

Please sign in to comment.