fix(bug)subtract-didnt-get-job-done

This commit is contained in:
Simon Bomm 2020-06-18 10:23:58 +02:00 committed by GitHub
parent 03ce23f9d7
commit 5eb5a184f5
1 changed files with 1 additions and 1 deletions

View File

@ -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});