diff --git a/cmd/status/metrics.go b/cmd/status/metrics.go index 9ccfd0b..7617cd2 100644 --- a/cmd/status/metrics.go +++ b/cmd/status/metrics.go @@ -149,6 +149,7 @@ type NetworkStatus struct { TxRateMBs float64 IP string } + // NetworkHistory holds the global network usage history. type NetworkHistory struct { RxHistory []float64 @@ -324,11 +325,11 @@ func (c *Collector) Collect() (MetricsSnapshot, error) { TxHistory: c.txHistoryBuf.Slice(), }, Proxy: proxyStats, - Batteries: batteryStats, - Thermal: thermalStats, - Sensors: sensorStats, - Bluetooth: btStats, - TopProcesses: topProcs, + Batteries: batteryStats, + Thermal: thermalStats, + Sensors: sensorStats, + Bluetooth: btStats, + TopProcesses: topProcs, }, mergeErr } diff --git a/cmd/status/view.go b/cmd/status/view.go index 828ecf5..a8a723a 100644 --- a/cmd/status/view.go +++ b/cmd/status/view.go @@ -201,8 +201,6 @@ func getScoreStyle(score int) lipgloss.Style { } } - - func hasSensorData(sensors []SensorReading) bool { for _, s := range sensors { if s.Note == "" && s.Value > 0 { @@ -475,21 +473,6 @@ func renderNetworkCard(netStats []NetworkStatus, history NetworkHistory, proxy P return cardData{icon: iconNetwork, title: "Network", lines: lines} } -func netBar(rate float64) string { - filled := min(int(rate/2.0), 5) - if filled < 0 { - filled = 0 - } - bar := strings.Repeat("▮", filled) + strings.Repeat("▯", 5-filled) - if rate > 8 { - return dangerStyle.Render(bar) - } - if rate > 3 { - return warnStyle.Render(bar) - } - return okStyle.Render(bar) -} - // 8 levels: ▁▂▃▄▅▆▇█ func sparkline(history []float64, current float64, width int) string { blocks := []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'} diff --git a/lib/core/ui.sh b/lib/core/ui.sh index c9feab4..d27f231 100755 --- a/lib/core/ui.sh +++ b/lib/core/ui.sh @@ -206,7 +206,7 @@ read_key() { echo "QUIT" fi ;; - ' ') echo "SPACE" ;; # Allow space in filter mode for selection + ' ') echo "SPACE" ;; # Allow space in filter mode for selection [[:print:]]) echo "CHAR:$key" ;; *) echo "OTHER" ;; esac diff --git a/lib/uninstall/batch.sh b/lib/uninstall/batch.sh index 3302aa2..a34aa23 100755 --- a/lib/uninstall/batch.sh +++ b/lib/uninstall/batch.sh @@ -389,7 +389,6 @@ batch_uninstall_applications() { local has_system_files="false" [[ -n "$system_files" ]] && has_system_files="true" - stop_launch_services "$bundle_id" "$has_system_files" # Remove from Login Items diff --git a/lib/uninstall/brew.sh b/lib/uninstall/brew.sh index abb17a3..569a2dd 100644 --- a/lib/uninstall/brew.sh +++ b/lib/uninstall/brew.sh @@ -179,8 +179,8 @@ brew_uninstall_cask() { # Ensure we have sudo access if needed, to prevent brew from hanging on password prompt # Many brew casks need sudo to uninstall if ! sudo -n true 2> /dev/null; then - # If we don't have sudo, try to get it (visibly) - sudo -v + # If we don't have sudo, try to get it (visibly) + sudo -v fi local uninstall_ok=false