Implement catchup hours logic

This commit is contained in:
2024-09-19 21:26:57 +02:00
parent 09c25a67c5
commit fe0bc03c03
6 changed files with 62 additions and 6 deletions

View File

@ -73,7 +73,7 @@ pub struct DailyMinRuntime {
/// The seconds in the days (from 00:00) where the counter is reset
pub reset_time: usize,
/// The hours during which the relay should be turned on to reach expected runtime
pub catch_up_hours: Vec<usize>,
pub catch_up_hours: Vec<u32>,
}
#[derive(Clone, Copy, Debug, serde::Serialize, serde::Deserialize, Eq, PartialEq, Hash)]