mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
fix(bug)subtract-didnt-get-job-done
This commit is contained in:
parent
d9ca85b4ef
commit
a20e25e846
@ -169,7 +169,7 @@ sub query_range {
|
||||
|
||||
my $tz = centreon::plugins::misc::set_timezone(name => $self->{timezone});
|
||||
my $dt = DateTime->now(%$tz);
|
||||
my $start_time = $dt->subtract(seconds => $options{timeframe})->epoch();
|
||||
my $start_time = $dt->epoch() - $options{timeframe};
|
||||
my $end_time = $dt->epoch();
|
||||
my $uri = URI::Encode->new({encode_reserved => 1});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user