liustatus: support very negative temperatures
All checks were successful
Alpine 3.22 Success
OpenBSD 7.8 Success

-10C is four characters.
This commit is contained in:
2025-12-27 09:51:23 +01:00
parent cdc896f1c2
commit dc06d57aaa

View File

@@ -98,7 +98,7 @@ func statusProducer(lines chan<- string) {
}
now := time.Now()
status := fmt.Sprintf("%s %3s %s",
status := fmt.Sprintf("%s%4s %s",
now.Format("Mon _2 Jan"), temperature, now.Format("15:04"))
// Ensure exactly 20 characters.