From 1cb05d404b75c2bf1d760091cc56a76f80a50ae5 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Mon, 6 Oct 2025 11:43:58 -0700 Subject: [PATCH] fix: add backward compatibility for DiskInfo fields --- socktop_connector/src/types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/socktop_connector/src/types.rs b/socktop_connector/src/types.rs index 84fdfa9..47df1c0 100644 --- a/socktop_connector/src/types.rs +++ b/socktop_connector/src/types.rs @@ -15,7 +15,9 @@ pub struct DiskInfo { pub name: String, pub total: u64, pub available: u64, + #[serde(default)] pub temperature: Option, + #[serde(default)] pub is_partition: bool, }