Resolving Issue #910

Boost last run duration generates an error on new install.
This commit is contained in:
cigamit committed 2017-08-16 20:10:02 -05:00
1 parent d214ecf49a
commit 60102e2a48
2 files changed
+8 -2

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ Cacti CHANGELOG
-issue#903: Upgrade pace.js to v0.7.8
-issue#906: Create a separate Realm for Realtime Graphs
-issue#907: XSS issue in spikekill.php
-issue#910: Boost last run duration generates an error on new install
1.1.17
-issue#450: List View to Preview shows no results
+7 -2
View File
@@ -2142,8 +2142,13 @@ function boost_display_run_status() {
form_alternate_row();
print '<td class="utilityPick">' . __('Last Run Duration:') . '</td><td>';
print (($boost_last_run_duration > 60) ? __('%d minutes', (int)($boost_last_run_duration/60)) : '' ) . __('%d seconds', $boost_last_run_duration%60);
if ($rrd_updates != ''){ print ' (' . __('%0.2f percent of update frequency)', round(100*$boost_last_run_duration/$update_interval/60));}
if (is_numeric($boost_last_run_duration)) {
print (($boost_last_run_duration > 60) ? __('%d minutes', (int)($boost_last_run_duration/60)) : '' ) . __('%d seconds', $boost_last_run_duration%60);
if ($rrd_updates != ''){ print ' (' . __('%0.2f percent of update frequency)', round(100*$boost_last_run_duration/$update_interval/60));}
} else {
print __('N/A');
}
print '</td>';
form_alternate_row();