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.