summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Rothenberg <rrwo@cpan.org>2020-03-25 07:47:36 +0000
committerRobert Rothenberg <rrwo@cpan.org>2020-03-25 08:41:26 +0000
commit0ec74226825cfcb40ee601e0ee8832d4fbe299c8 (patch)
tree334fb198f50664824af15ff432ed7e8b0e674827
parent40f3aa5acd8f0ddc50ca3b3d1710fbc5439b493c (diff)
Fix inaccurate POD
-rw-r--r--Changes2
-rw-r--r--README.md4
-rw-r--r--lib/Sys/CpuLoad.pm4
3 files changed, 6 insertions, 4 deletions
diff --git a/Changes b/Changes
index 7c3fca2..fd6f963 100644
--- a/Changes
+++ b/Changes
@@ -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]
diff --git a/README.md b/README.md
index af767d9..87bd263 100644
--- a/README.md
+++ b/README.md
@@ -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>.