fix whitespace diffs
This commit is contained in:
parent
1449e21a7d
commit
53d81eba97
1 changed files with 76 additions and 78 deletions
6
ddclient
6
ddclient
|
|
@ -409,8 +409,6 @@ my %variables = (
|
||||||
'cmd-skip' => setv(T_STRING,0, 0, 1, '', undef),
|
'cmd-skip' => setv(T_STRING,0, 0, 1, '', undef),
|
||||||
'cmdv6' => setv(T_PROG, 0, 0, 1, '', undef),
|
'cmdv6' => setv(T_PROG, 0, 0, 1, '', undef),
|
||||||
'cmdv6-skip' => setv(T_STRING,0, 0, 1, '', undef),
|
'cmdv6-skip' => setv(T_STRING,0, 0, 1, '', undef),
|
||||||
|
|
||||||
|
|
||||||
'ip' => setv(T_IP, 0, 1, 0, undef, undef),
|
'ip' => setv(T_IP, 0, 1, 0, undef, undef),
|
||||||
'ipv6' => setv(T_IPV6, 0, 1, 0, undef, undef),
|
'ipv6' => setv(T_IPV6, 0, 1, 0, undef, undef),
|
||||||
'wtime' => setv(T_DELAY, 0, 1, 1, 0, interval('30s')),
|
'wtime' => setv(T_DELAY, 0, 1, 1, 0, interval('30s')),
|
||||||
|
|
@ -2373,7 +2371,6 @@ sub get_ip {
|
||||||
if (!defined $reply) {
|
if (!defined $reply) {
|
||||||
$reply = '';
|
$reply = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($skip) {
|
if ($skip) {
|
||||||
$skip =~ s/ /\\s/is;
|
$skip =~ s/ /\\s/is;
|
||||||
$reply =~ s/^.*?${skip}//is;
|
$reply =~ s/^.*?${skip}//is;
|
||||||
|
|
@ -2597,6 +2594,7 @@ sub nic_updateable {
|
||||||
prettyinterval($config{$host}{'min-interval'})
|
prettyinterval($config{$host}{'min-interval'})
|
||||||
)
|
)
|
||||||
if opt('verbose') || !define($cache{$host}{'warned-min-interval'}, 0);
|
if opt('verbose') || !define($cache{$host}{'warned-min-interval'}, 0);
|
||||||
|
|
||||||
$cache{$host}{'warned-min-interval'} = $now;
|
$cache{$host}{'warned-min-interval'} = $now;
|
||||||
|
|
||||||
} elsif (($cache{$host}{'status'} ne 'good') && !interval_expired($host, 'atime', 'min-error-interval')) {
|
} elsif (($cache{$host}{'status'} ne 'good') && !interval_expired($host, 'atime', 'min-error-interval')) {
|
||||||
|
|
@ -2610,6 +2608,7 @@ sub nic_updateable {
|
||||||
prettyinterval($config{$host}{'min-error-interval'})
|
prettyinterval($config{$host}{'min-error-interval'})
|
||||||
)
|
)
|
||||||
if opt('verbose') || !define($cache{$host}{'warned-min-error-interval'}, 0);
|
if opt('verbose') || !define($cache{$host}{'warned-min-error-interval'}, 0);
|
||||||
|
|
||||||
$cache{$host}{'warned-min-error-interval'} = $now;
|
$cache{$host}{'warned-min-error-interval'} = $now;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2684,7 +2683,6 @@ sub nic_updateable {
|
||||||
|
|
||||||
return $update;
|
return $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
## header_ok
|
## header_ok
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue