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) = @_;