improve parsing of durations
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user