diff options
author | Robert Rothenberg <rrwo@cpan.org> | 2020-03-25 07:47:36 +0000 |
---|---|---|
committer | Robert Rothenberg <rrwo@cpan.org> | 2020-03-25 08:41:26 +0000 |
commit | 0ec74226825cfcb40ee601e0ee8832d4fbe299c8 (patch) | |
tree | 334fb198f50664824af15ff432ed7e8b0e674827 | |
parent | 40f3aa5acd8f0ddc50ca3b3d1710fbc5439b493c (diff) |
Fix inaccurate POD
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | lib/Sys/CpuLoad.pm | 4 |
3 files changed, 6 insertions, 4 deletions
@@ -1,6 +1,8 @@ Revision history for Perl extension {{$dist->name}}: {{$NEXT}} + [Documentation] + - Update POD about changes in version 0.12. 0.12 2020-03-24 23:22:57+00:00 Europe/London [Enhancements] @@ -26,9 +26,9 @@ of a machine. This method returns the load average for 1 minute, 5 minutes and 15 minutes as an array. -On Linux systems it will attempt to use `/proc/loadavg`. +On Linux, FreeBSD and OpenBSD systems, it will make a call to `getloadavg`. -On FreeBSD and OpenBSD systems, it will make a call to `getloadavg`. +If `/proc/loadavg` is available, it will attempt to parse the file. Otherwise, it will attempt to parse the output of `uptime`. diff --git a/lib/Sys/CpuLoad.pm b/lib/Sys/CpuLoad.pm index 9f59680..de0f6a4 100644 --- a/lib/Sys/CpuLoad.pm +++ b/lib/Sys/CpuLoad.pm @@ -39,9 +39,9 @@ of a machine. This method returns the load average for 1 minute, 5 minutes and 15 minutes as an array. -On Linux systems it will attempt to use F</proc/loadavg>. +On Linux, FreeBSD and OpenBSD systems, it will make a call to C<getloadavg>. -On FreeBSD and OpenBSD systems, it will make a call to C<getloadavg>. +If F</proc/loadavg> is available, it will attempt to parse the file. Otherwise, it will attempt to parse the output of C<uptime>. |