1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 16:49:41 +00:00

chore: auto format code

This commit is contained in:
Tw93
2025-12-11 06:24:53 +00:00
parent b7518c9c6b
commit c37f022529

View File

@@ -539,7 +539,7 @@ func renderBatteryCard(batts []BatteryStatus, thermal ThermalStatus) cardData {
if b.CycleCount > 0 {
healthParts = append(healthParts, fmt.Sprintf("%d cycles", b.CycleCount))
}
// Add temperature if available
if thermal.CPUTemp > 0 {
tempStyle := subtleStyle
@@ -550,12 +550,12 @@ func renderBatteryCard(batts []BatteryStatus, thermal ThermalStatus) cardData {
}
healthParts = append(healthParts, tempStyle.Render(fmt.Sprintf("%.0f°C", thermal.CPUTemp)))
}
// Add fan speed if available
if thermal.FanSpeed > 0 {
healthParts = append(healthParts, fmt.Sprintf("%d RPM", thermal.FanSpeed))
}
if len(healthParts) > 0 {
lines = append(lines, subtleStyle.Render(strings.Join(healthParts, " · ")))
}