From a3b16be07bc31f28a50a37beef42655b62dd9558 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Sat, 31 Oct 2020 21:48:02 +0100 Subject: tests for seconds and performance fix --- src/iter/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/iter/mod.rs b/src/iter/mod.rs index fe5b612..c9fa858 100644 --- a/src/iter/mod.rs +++ b/src/iter/mod.rs @@ -247,9 +247,9 @@ pub fn increment_counter_date( let hours = counter_date.hour() as usize; if (options.byhour.is_empty() || includes(&options.byhour, &hours)) && ( - options.byminute.is_empty() || includes(&options.byminute, &minutes) && ( + options.byminute.is_empty() || includes(&options.byminute, &minutes)) && ( options.bysecond.is_empty() || includes(&options.bysecond, &seconds) - )) { + ) { break; } } -- cgit v1.2.3