From b5d91636c286e53d2949cad718a2692737a272c0 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 8 Jun 2021 14:20:18 +0200 Subject: [PATCH] enh(hikvision/snmp): force new perfdata for time mode (#2858) --- hardware/devices/camera/hikvision/snmp/mode/time.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hardware/devices/camera/hikvision/snmp/mode/time.pm b/hardware/devices/camera/hikvision/snmp/mode/time.pm index 1284d0f0b..0d7e14c20 100644 --- a/hardware/devices/camera/hikvision/snmp/mode/time.pm +++ b/hardware/devices/camera/hikvision/snmp/mode/time.pm @@ -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) = @_;