Change defaults for warned-min{,-error}-interval
from 0 to undef
The code already treats `undef` and 0 the same, and `undef` omits them from the recap which simplifies testing.
This commit is contained in:
parent
603a59ffe3
commit
f23070a114
1 changed files with 2 additions and 2 deletions
|
@ -664,13 +664,13 @@ our %variables = (
|
|||
# made. This is used as a boolean to suppress repeated warnings to the user that indicate
|
||||
# that `min-interval` has inhibited an update attempt.
|
||||
# TODO: Change to a boolean and rename to improve readability.
|
||||
'warned-min-interval' => setv(T_ANY, 0, 1, 0, undef),
|
||||
'warned-min-interval' => setv(T_ANY, 0, 1, undef, undef),
|
||||
# Timestamp (seconds since epoch) of the most recent attempt that would have been made had
|
||||
# `min-error-interval` not inhibited the attempt. This is reset to 0 once an attempt is
|
||||
# actually made. This is used as a boolean to suppress repeated warnings to the user that
|
||||
# indicate that `min-error-interval` has inhibited an update attempt.
|
||||
# TODO: Change to a boolean and rename to improve readability.
|
||||
'warned-min-error-interval' => setv(T_ANY, 0, 1, 0, undef),
|
||||
'warned-min-error-interval' => setv(T_ANY, 0, 1, undef, undef),
|
||||
},
|
||||
'dyndns-common-defaults' => {
|
||||
'backupmx' => setv(T_BOOL, 0, 1, 0, undef),
|
||||
|
|
Loading…
Reference in a new issue