enh(hikvision/snmp): force new perfdata for time mode (#2858)

This commit is contained in:
qgarnier 2021-06-08 14:20:18 +02:00 committed by GitHub
parent 7ff8e1a153
commit b5d91636c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,14 @@ use base qw(snmp_standard::mode::ntp);
use strict;
use warnings;
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
bless $self, $class;
return $self;
}
sub get_target_time {
my ($self, %options) = @_;