Index: /modules/branches/2.3/dashboard/page.index.php
===================================================================
--- /modules/branches/2.3/dashboard/page.index.php (revision 4371)
+++ /modules/branches/2.3/dashboard/page.index.php (revision 4376)
@@ -243,4 +243,10 @@
$out .= '
| '._('System Uptime').': | '.time_string($sysinfo->uptime()).' |
';
$ast_uptime = $astinfo->get_uptime();
+ if (empty($ast_uptime['system'])) {
+ $ast_uptime['system'] = time_string(0);
+ }
+ if (empty($ast_uptime['reload'])) {
+ $ast_uptime['reload'] = time_string(0);
+ }
$out .= '| '._('Asterisk Uptime').': | '.$ast_uptime['system'].' |
';
$out .= '| '._('Last Reload').': | '.$ast_uptime['reload'].' |
';
@@ -444,5 +450,5 @@
}
function scheduleInfoUpdate() {
- setTimeout('updateInfo();',);
+ setTimeout('updateInfo();',000);
}
@@ -467,5 +473,5 @@
}
function scheduleStatsUpdate() {
- setTimeout('updateStats();',);
+ setTimeout('updateStats();',000);
}
Index: /modules/branches/2.3/dashboard/class.astinfo.php
===================================================================
--- /modules/branches/2.3/dashboard/class.astinfo.php (revision 4360)
+++ /modules/branches/2.3/dashboard/class.astinfo.php (revision 4376)
@@ -121,5 +121,8 @@
Last reload: 1 week, 1 day, 6 hours, 14 minutes, 49 seconds
*/
- $output = array();
+ $output = array(
+ 'system' => '',
+ 'reload' => '',
+ );
foreach ($astout as $line) {