RE: [PHP] Uptime script
| From: | Craig Westerman | Date: | Tue, 07 Aug 2001 02:51:19 +0000 |
| Subject: | RE: [PHP] Uptime script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61537@lists.php.net to get a copy of this message | ||
>I'm wanting to chart the server load average data displayed when you run
The correct way to do that would be to read it straight from the source,
(eg. /proc/loadav for linux with procfs).
That would be much quicker, and it would also save your server a fork
for each reading (unless you are running php as a cgi ;-)
nice uptime btw...
--
Andreas D Landmark / noXtension
I'm running FreeBSD. I'll see if if I can find source as you suggest.
Thanks
Craig ><>
westerman@chanuteks.com