+ Fix #590
This commit is contained in:
parent
e75c5304d9
commit
2dcb4bc571
|
@ -101,6 +101,8 @@ sub run {
|
||||||
my %ntp;
|
my %ntp;
|
||||||
# Need to set following patch: https://rt.cpan.org/Public/Bug/Display.html?id=59607
|
# Need to set following patch: https://rt.cpan.org/Public/Bug/Display.html?id=59607
|
||||||
eval {
|
eval {
|
||||||
|
local $SIG{__WARN__} = sub { die $_[0] };
|
||||||
|
|
||||||
%ntp = Net::NTP::get_ntp_response($ntp_hostname, $self->{option_results}->{ntp_port});
|
%ntp = Net::NTP::get_ntp_response($ntp_hostname, $self->{option_results}->{ntp_port});
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
|
Loading…
Reference in New Issue