From df036e90dce619121959ac94899c57f5bd561ac1 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Thu, 23 Oct 2025 14:33:50 +0200 Subject: [PATCH] Add missing tmpfs metric handling to system widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add memory_tmp_usage_percent, memory_tmp_used_gb, memory_tmp_total_gb metric parsing - Fix tmpfs display showing as —% —GB/—GB in dashboard - System widget now properly receives and displays tmpfs metrics from memory collector --- dashboard/src/ui/widgets/system.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dashboard/src/ui/widgets/system.rs b/dashboard/src/ui/widgets/system.rs index 0599e88..3e1e7ba 100644 --- a/dashboard/src/ui/widgets/system.rs +++ b/dashboard/src/ui/widgets/system.rs @@ -357,6 +357,23 @@ impl Widget for SystemWidget { self.memory_total_gb = Some(total); } } + + // Tmpfs metrics + "memory_tmp_usage_percent" => { + if let MetricValue::Float(usage) = metric.value { + self.tmp_usage_percent = Some(usage); + } + } + "memory_tmp_used_gb" => { + if let MetricValue::Float(used) = metric.value { + self.tmp_used_gb = Some(used); + } + } + "memory_tmp_total_gb" => { + if let MetricValue::Float(total) = metric.value { + self.tmp_total_gb = Some(total); + } + } _ => {} } }