Revise widget refresh timing

This commit is contained in:
Stephen Beaver 2016-08-18 19:38:00 -04:00
parent fb1234ab7d
commit 134ee13df5
2 changed files with 2 additions and 2 deletions

View File

@ -492,7 +492,7 @@ $section->addInput(new Form_Input(
'Dashboard update period',
'number',
$pconfig['dashboardperiod'],
['min' => '10', 'max' => '600']
['min' => '5', 'max' => '600']
))->setHelp('Time in seconds between dashboard widget updates. Small values cause ' .
'more frequent updates but increase the load on the web server. ' .
'Minimum is 5 seconds, maximum 600 seconds');

View File

@ -41,7 +41,7 @@ function clockTimeString($inDate, $showSeconds) {
// For this widget the update period is 6 x larger than most others. It typically defaults
// to once per 60 seconds, not once per 10 seconds
$widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period'] * 1000 : 10000;
$widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period'] * 1000 * 6 : 60000;
if ($_REQUEST['updateme']) {
//this block displays only on ajax refresh