gunleik Posted March 6, 2008 Share Posted March 6, 2008 I've tried to find a solution to this in the forum, but could't find it. So if this have been issued before I apologize. My FreeBSD don't have a proc-fs so the uptime in the status page shows 00:00:00. Go to the status/index.php file. Find and remove the existing line: $uptime = shell_exec("cut -d. -f1 /proc/uptime"); Insert the following at the same location: $boottimeSec = shell_exec('/sbin/sysctl kern.boottime');// Get boottime in seconds $aSec = explode (" ", $boottimeSec); // Explode and return array $bSec = ereg_replace('\,', '', $aSec[4]); // Remove trailing comma $uptime = time() - $bSec; // Find uptime in seconds 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.