summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-08-18 19:38:00 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-08-18 19:39:07 -0400
commitd958c917c817be96338cbdb85837d8ff5ed5c7b1 (patch)
tree5802107e1d9885eab5e922d69cb01b4e931f0367 /src
parentc93d289bb926111a4b8ecd71fa59771185b0c7b6 (diff)
downloadpfsense-d958c917c817be96338cbdb85837d8ff5ed5c7b1.zip
pfsense-d958c917c817be96338cbdb85837d8ff5ed5c7b1.tar.gz
Revise widget refresh timing
(cherry picked from commit 134ee13df54280441c25b047b406628eeebbb8db)
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/system.php2
-rw-r--r--src/usr/local/www/widgets/widgets/ntp_status.widget.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 836b73a..6c5f014 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -524,7 +524,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');
diff --git a/src/usr/local/www/widgets/widgets/ntp_status.widget.php b/src/usr/local/www/widgets/widgets/ntp_status.widget.php
index 1bc9279..152fe67 100644
--- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php
@@ -73,7 +73,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
OpenPOWER on IntegriCloud