summaryrefslogtreecommitdiff
path: root/src/iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/iter.rs')
-rw-r--r--src/iter.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iter.rs b/src/iter.rs
index 0581cc3..2673059 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -249,7 +249,9 @@ pub fn increment_counter_date(
counter_date + Duration::days(day_delta as i64)
}
Frequenzy::DAILY => counter_date + Duration::days(options.interval as i64),
- _ => panic!("hfoashfosa"),
+ Frequenzy::HOURLY => counter_date + Duration::hours(options.interval as i64),
+ Frequenzy::MINUTELY => counter_date + Duration::minutes(options.interval as i64),
+ Frequenzy::SECONDLY => counter_date + Duration::seconds(options.interval as i64),
}
}