improve parsing of durations

This commit is contained in:
2026-02-03 19:38:02 -08:00
parent 2e8e731d80
commit d464cf8ee6
6 changed files with 185 additions and 24 deletions

View File

@@ -113,8 +113,7 @@ impl HwmonSource {
impl ChimemonSource for HwmonSource {
async fn run(self, chan: ChimemonSourceChannel) {
info!("hwmon task started");
let mut interval =
tokio::time::interval(Duration::from_secs(self.config.sources.hwmon.interval));
let mut interval = tokio::time::interval(self.config.sources.hwmon.interval);
loop {
interval.tick().await;
let mut values = Vec::new();