aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/perf/Perf.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 20:18:18 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 20:18:18 +0100
commit29ecce1d79dfae8ad5ef07716b8582c37a823f82 (patch)
tree4a8979d4f11f4587c4401f354889664cabfab41a /desktop/modules/perf/Perf.qml
parentdd3e17cb9765f7643c8a5ccdfa36481618fa897a (diff)
downloadquickshell-29ecce1d79dfae8ad5ef07716b8582c37a823f82.tar.gz
quickshell-29ecce1d79dfae8ad5ef07716b8582c37a823f82.zip
fix(perf): NFS shares no longer raise the tile's dot
A nearly full file server lit the drawer tile's dot while CPU, RAM and every local disk were fine. Shares stay in the panel with their fill; only local disks count toward the dot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/perf/Perf.qml')
-rw-r--r--desktop/modules/perf/Perf.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/modules/perf/Perf.qml b/desktop/modules/perf/Perf.qml
index d165110..5fcf0ab 100644
--- a/desktop/modules/perf/Perf.qml
+++ b/desktop/modules/perf/Perf.qml
@@ -66,11 +66,12 @@ Singleton {
readonly property var ip: P.ipCheck(root.pub, root.now, Prefs.pinnedIp)
// The icon's dot. CPU load is left out: spikes would flicker it, and
- // sustained load shows up as heat.
+ // sustained load shows up as heat. NFS shares are too: a full file server
+ // is shown in the panel, not raised as this PC's trouble.
readonly property string severity: P.worst(
root.temps.map(t => P.band(t.value, t.warn, t.crit))
.concat([P.band(root.mem ? 100 * root.mem.used / root.mem.total : null, 85, 95)])
- .concat(root.disks.map(d => P.band(d.pct, 90, 95)))
+ .concat(root.disks.filter(d => !d.host).map(d => P.band(d.pct, 90, 95)))
.concat([root.ip.mismatch ? "crit" : "ok"]))
readonly property string pubipPath: