fix(bug)subtract-didnt-get-job-done
This commit is contained in:
parent
03ce23f9d7
commit
5eb5a184f5
|
@ -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…
Reference in New Issue