From f23070a114a250cf9adbf13e8efa229da2f29c71 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 18 Aug 2024 02:56:22 -0400 Subject: [PATCH] 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. --- ddclient.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index f9d2839..a645032 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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),