Skip Menu |

This queue is for tickets about the Sys-Load CPAN distribution.

Report information
The Basics
Id: 4373
Status: new
Priority: 0/
Queue: Sys-Load

People
Owner: Nobody in particular
Requestors: all [...] biosys.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: uptime is linux-only
This module is linux-only for reporting uptime. As stated in the documentation, the uptime function returns 0 on an "error." This causes the function to always return 0 on non-linux operating systems (such as my FreeBSD 4.9 test platform) because uptime is gathered via the following snippet from the module: use constant UPTIME => "/proc/uptime"; open(FILE, UPTIME) || return 0; "/proc/uptime" exists only on linux systems. This should be fixed with a more portable uptime routine or marked in some fashion as non-functional on non-linux systems.
[guest - Wed Nov 12 17:34:23 2003]: Show quoted text
> "/proc/uptime" exists only on linux systems. >
It works on all systems which has procfs. I know OpenBSD has it, not sure about FreeBSD. Show quoted text
> This should be fixed with a more portable uptime routine or marked
in Show quoted text
> some fashion as non-functional on non-linux systems.
That's indeed true, I'll fix it.