From cc3e2910057d530e8e191fa93813b329e872fa98 Mon Sep 17 00:00:00 2001 From: cikzh Date: Thu, 3 Dec 2026 16:32:55 +0100 Subject: [PATCH] Fix clocks function calling itself instead of using local var --- statime/src/daemon/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statime/src/daemon/system.rs b/statime/src/daemon/system.rs index 52a643822..db1fdceb1 100644 --- a/statime/src/daemon/system.rs +++ b/statime/src/daemon/system.rs @@ -549,7 +549,7 @@ impl System { pub fn clocks(&self) -> HashMap { let mut clocks = HashMap::new(); if let Ok(snapshot) = self.controller.clock_snapshot(self.system_clock_id) { - self.clocks().insert("system".into(), snapshot); + clocks.insert("system".into(), snapshot); } clocks }