Revision c7b8b46a
Added by Scott Ullrich almost 17 years ago
usr/local/www/includes/functions.inc.php | ||
---|---|---|
5 | 5 |
} |
6 | 6 |
|
7 | 7 |
require_once("config.inc"); |
8 |
require_once('guiconfig.inc'); |
|
9 |
|
|
10 | 8 |
|
11 | 9 |
|
12 | 10 |
function get_stats() { |
... | ... | |
33 | 31 |
$boottime = $matches[1]; |
34 | 32 |
$uptime = time() - $boottime; |
35 | 33 |
|
34 |
if(intval($boottime) == 0) |
|
35 |
return; |
|
36 |
if(intval($uptime) == 0) |
|
37 |
return; |
|
38 |
|
|
36 | 39 |
$updays = (int)($uptime / 86400); |
37 | 40 |
$uptime %= 86400; |
38 | 41 |
$uphours = (int)($uptime / 3600); |
... | ... | |
223 | 226 |
return $data; |
224 | 227 |
} |
225 | 228 |
|
229 |
?> |
Also available in: Unified diff
that is populated on the dashboard on first load.