Skip to content

Commit

Permalink
fix(gorgone/mbi): rebuilding centiles truncates mod_bi_metrichourlyva…
Browse files Browse the repository at this point in the history
…lue (#1545)
  • Loading branch information
kduret authored Jul 22, 2024
1 parent 70b5322 commit 59deab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorgone/gorgone/modules/centreon/mbi/etl/perfdata/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ sub purgeTables {

if ($etl->{run}->{etlProperties}->{'perfdata.granularity'} ne "day" &&
(!defined($etl->{run}->{options}->{month_only}) || $etl->{run}->{options}->{month_only} == 0) &&
(!defined($etl->{run}->{options}->{no_centile}) || $etl->{run}->{options}->{no_centile} == 0)) {
(!defined($etl->{run}->{options}->{centile_only}) || $etl->{run}->{options}->{centile_only} == 0)) {
emptyTableForRebuild($etl, name => 'mod_bi_metrichourlyvalue', column => 'time_id', start => $hourly_start, end => $hourly_end);
}
}
Expand Down

0 comments on commit 59deab8

Please sign in to comment.