diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-08-18 19:38:00 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-08-18 19:38:56 -0400 |
commit | 6d203ffc8a63b0969a8758861fd2a76b88fd1f62 (patch) | |
tree | 3ba1bd16354c3dfa460ba98da5ae81d40cbf75b5 | |
parent | c1f9ca7a73c562145f777b850bf3f4000f938c14 (diff) | |
download | pfsense-6d203ffc8a63b0969a8758861fd2a76b88fd1f62.zip pfsense-6d203ffc8a63b0969a8758861fd2a76b88fd1f62.tar.gz |
Revise widget refresh timing
(cherry picked from commit 134ee13df54280441c25b047b406628eeebbb8db)
-rw-r--r-- | src/usr/local/www/system.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/ntp_status.widget.php | 2 |
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 |