diff --git a/docs/CHANGELOG b/docs/CHANGELOG index c5b1aee6c..0971e1e7b 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -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 diff --git a/utilities.php b/utilities.php index 7eb2579a4..a8322bae7 100644 --- a/utilities.php +++ b/utilities.php @@ -2142,8 +2142,13 @@ function boost_display_run_status() { form_alternate_row(); print '' . __('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));} + + 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 ''; form_alternate_row();