diff options
Diffstat (limited to 'src')
-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 |