Skip to content

Commit

Permalink
fix PHP 8.x waring about int * string problem (#5676)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan authored Feb 21, 2024
1 parent 6f28014 commit 018f8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spikekill.php
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ private function updateXML(&$output, &$rra) {
}
} else {
if ($this->method == SPIKE_METHOD_VARIANCE) {
if ($dsvalue > (1 + $this->percent) * $rra[$rra_num][$ds_num]['variance_avg']) {
if ($dsvalue > (1 + $this->percent) * (float) $rra[$rra_num][$ds_num]['variance_avg']) {
if ($kills < $this->numspike) {
if ($this->avgnan == 'avg') {
cacti_log("DEBUG: replacing dsvalue {$dsvalue} with variance_avg {$rra[$rra_num][$ds_num]['variance_avg']}", false, 'SPIKEKILL', POLLER_VERBOSITY_DEBUG);
Expand Down

0 comments on commit 018f8c8

Please sign in to comment.