Skip to content

Commit

Permalink
Maximum should be one day
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Dec 12, 2017
1 parent 59edb2a commit 05afda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ void read_FTLconf(void)
if(buffer != NULL && sscanf(buffer, "%f", &fvalue))
// check if the read value is
// - larger than 0.1min (6sec), and
// - smaller than 43200 (once a month)
if(fvalue >= 0.1 && fvalue <= 43200.0)
// - smaller than 1440.0min (once a day)
if(fvalue >= 0.1 && fvalue <= 1440.0)
config.DBinterval = (int)(60.*fvalue);

if(config.DBinterval == 60)
Expand Down

0 comments on commit 05afda1

Please sign in to comment.