aykevl/mta-sts

Seconds in error message calculated incorrectly

paulmenzel opened this issue · 1 comments

posteo.de uses a small max_age value of five minutes.

max_age: 300

The service reports the warning below.

Error: Very short max_age field specified. It is less than a day with 0.003472222222222222 seconds. The suggested amount is at least in the order of weeks (this validator uses 28 days).

As the unit for max_age is integer seconds, shouldn’t it say 300 seconds in the message?

PR opened: #13