Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
slowpeek committed May 24, 2024
1 parent 9337972 commit e88f01f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hddtemp-lt
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ main() {
fi
fi

items+=("${disk}:" "${name:-?}" "${temp:-?}" "${temp:+$scale}")
items+=("${disk}:" "${name:-?}" "${temp:-?}${temp:+$scale}")
done

if [[ $classic = n ]]; then
printf "%-$((l_disk+1))s %-${l_name}s %s%s\n" "${items[@]}"
printf "%-$((l_disk+1))s %-${l_name}s %s\n" "${items[@]}"
else
printf "%s %s: %s%s\n" "${items[@]}"
printf "%s %s: %s\n" "${items[@]}"
fi
}

Expand Down

0 comments on commit e88f01f

Please sign in to comment.