diff options
author | Robert Rothenberg <rrwo@cpan.org> | 2020-03-25 12:32:11 +0000 |
---|---|---|
committer | Robert Rothenberg <rrwo@cpan.org> | 2020-03-25 12:32:11 +0000 |
commit | fccb94a126a551fdcd386d341e9be16297eafccc (patch) | |
tree | d642d77ba0dba034c04af5581f4de7c22233b73d | |
parent | 76da550862c366bcb0ebfc2c52580483bf685eb6 (diff) |
Revert "Test that getloadavg works before opting to use it"
This reverts commit 39af69eafb71777ec2be274c9c43b3b85e386479.
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | lib/Sys/CpuLoad.pm | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -2,9 +2,6 @@ Revision history for Perl extension {{$dist->name}}: {{$NEXT}} [Enhancements] - - Test that getloadavg system call works before opting to use that - method. - - Add support for NetBSD #2 and Solaris. - Return a single undef when the load function fails. diff --git a/lib/Sys/CpuLoad.pm b/lib/Sys/CpuLoad.pm index 93bd0ba..ed9246d 100644 --- a/lib/Sys/CpuLoad.pm +++ b/lib/Sys/CpuLoad.pm @@ -54,7 +54,7 @@ sub import { my $this = __PACKAGE__; my $os = lc $^O; - if ( _getbsdload() ) { + if ( $os =~ /^(darwin|freebsd|openbsd|linux)$/ ) { no strict 'refs'; ## no critic (ProhibitNoStrict) |