mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revise widget refresh timing
This commit is contained in:
parent
fb1234ab7d
commit
134ee13df5
@ -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');
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user