diff --git a/WatcherAgent/src/main.rs b/WatcherAgent/src/main.rs index 3e79d40..89af784 100644 --- a/WatcherAgent/src/main.rs +++ b/WatcherAgent/src/main.rs @@ -375,7 +375,7 @@ impl MetricsCollector { 0.0 }; - let avg_temp = if count > 0 { temp / count as f64 } else { 0.0 }; + let avg_temp = if count > 0 { temp / count as f32 } else { 0.0 }; (size_gb, usage, avg_temp) };