Skip to content

Commit 7fc19d6

Browse files
committed
Fix: #6173: Deprecation warning when using boost for the first time
These are both startup issues when using boost for the first time.
1 parent 405caea commit 7fc19d6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Cacti CHANGELOG
44
-issue#6089: Cannot Add New User due to incorrect array structure
55
-issue#6090: Undefined function warnings in Automation
66
-issue#6099: When transferring a system from a backup if the poller has not run recently rrdtool issues are found
7+
-issue#6173: Deprecation warning when using boost for the first time
78

89
1.2.29
910
-security#GHSA-c5j8-jxj3-hh36: Authenticated RCE via multi-line SNMP responses

poller_boost.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,10 @@ function boost_log_statistics($rrd_updates) {
12701270
$outstr .= ($outstr != '' ? ', ':'') . "$key:" . round($end-$start, 2);
12711271
} elseif ($key == 'RRDUpdates') {
12721272
$outstr .= ($outstr != '' ? ', ':'') . "$key:" . round($output[$key], 0);
1273-
} else {
1273+
} elseif (isset($output[$key])) {
12741274
$outstr .= ($outstr != '' ? ', ':'') . "$key:" . round($output[$key]/$processes, 0);
1275+
} else {
1276+
$outstr .= ($outstr != '' ? ', ':'') . "$key:0";
12751277
}
12761278
}
12771279

utilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,9 +2830,9 @@ function applyFilter() {
28302830
form_alternate_row();
28312831

28322832
if ($rows_to_process > 0) {
2833-
print '<td class="utilityPick">' . __esc('Process: %d', $process) . '</td><td>' . __('Status: <span class="deviceUp"><b>Running</b></span>, Remaining: %s (dses), CurrentRuntime: %s (secs), PrevRuntime: %s (secs), PrevProcessed: %10s (ds rows)', number_format_i18n($rows_to_process), number_format_i18n($runtime), number_format_i18n($time), number_format_i18n($rrds)) . '</td>';
2833+
print '<td class="utilityPick">' . __esc('Process: %d', $process) . '</td><td>' . __('Status: <span class="deviceUp"><b>Running</b></span>, Remaining: %s (dses), CurrentRuntime: %s (secs), PrevRuntime: %s (secs), PrevProcessed: %10s (ds rows)', number_format_i18n((int) $rows_to_process), number_format_i18n((float) $runtime), number_format_i18n((float) $time), number_format_i18n((int) $rrds)) . '</td>';
28342834
} else {
2835-
print '<td class="utilityPick">' . __esc('Process: %d', $process) . '</td><td>' . __('Status: <span class="deviceRecovering"><b>Idle</b></span>, PrevRuntime: %s (secs), PrevProcessed: %10s (ds rows)', number_format_i18n($time), number_format_i18n($rrds)) . '</td>';
2835+
print '<td class="utilityPick">' . __esc('Process: %d', $process) . '</td><td>' . __('Status: <span class="deviceRecovering"><b>Idle</b></span>, PrevRuntime: %s (secs), PrevProcessed: %10s (ds rows)', number_format_i18n((float) $time), number_format_i18n((int) $rrds)) . '</td>';
28362836
}
28372837
}
28382838
}

0 commit comments

Comments
 (0)