freebsd-ports/sysutils/rubygem-facter/files/patch-lib-facter-processor.rb
Dmitry Sivachenko 1286b5e535 Fix 'processor' and 'processorcount' facts.
Bump PORTREVISION.

Reviewed by:    swills
Maintainer timeout.
2013-04-30 16:01:02 +00:00

19 lines
525 B
Ruby

--- lib/facter/processor.rb.orig 2013-04-30 19:57:21.000000000 +0400
+++ lib/facter/processor.rb 2013-04-30 19:58:19.000000000 +0400
@@ -88,14 +88,14 @@
end
Facter.add("Processor") do
- confine :kernel => :openbsd
+ confine :kernel => [ :openbsd, :freebsd ]
setcode do
Facter::Util::Resolution.exec("uname -p")
end
end
Facter.add("ProcessorCount") do
- confine :kernel => :openbsd
+ confine :kernel => [ :openbsd, :freebsd ]
setcode do
Facter::Util::Resolution.exec("sysctl -n hw.ncpu")
end