kopia lustrzana https://github.com/jprochazka/adsb-receiver
Replaced depreciated function.
rodzic
3df19fd384
commit
bf04929a3c
|
@ -133,7 +133,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUptimeInformation() {
|
function getUptimeInformation() {
|
||||||
$uptimeArray = split(' ', exec("cat /proc/uptime"));
|
$uptimeArray = explode(' ', exec("cat /proc/uptime"));
|
||||||
$uptime['inSeconds'] = trim($uptimeArray[0]);
|
$uptime['inSeconds'] = trim($uptimeArray[0]);
|
||||||
$uptime['hours'] = floor($uptime['inSeconds'] / 3600);
|
$uptime['hours'] = floor($uptime['inSeconds'] / 3600);
|
||||||
$uptime['minutes'] = floor(($uptime['inSeconds'] - ($uptime['hours'] * 3600)) / 60);
|
$uptime['minutes'] = floor(($uptime['inSeconds'] - ($uptime['hours'] * 3600)) / 60);
|
||||||
|
|
Ładowanie…
Reference in New Issue