elementary
elementary copied to clipboard
[ELE-2346] Detection period smaller than a day do not work.
Describe the bug
Users are unable to define a detection_period that is smaller than a day.
Here's the explanation:
- We calculate the
backfill_daysaccording to thedetection_period. - We convert it to
days. - We cast the result to
int. This means that if thedetection_periodwas2 (hours) / 24 (hours) = 0.083 (days)it'll result in0. - We fail this check.