Giter Club home page Giter Club logo

Comments (2)

user454322 avatar user454322 commented on June 23, 2024

Patch is provided here
=)

From eac15ecf2e63fc5c0924f892d63cdc437a6e385a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Javier=20Alc=C3=A1zar?= <jalcazar@xps.com>
Date: Mon, 4 Jun 2012 00:15:13 +0900
Subject: [PATCH] Adding support for OpenBSD

---
 lib/parallel.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/parallel.rb b/lib/parallel.rb
index a4ab87f..5d6d878 100644
--- a/lib/parallel.rb
+++ b/lib/parallel.rb
@@ -68,7 +68,7 @@ module Parallel
       (hwprefs_available? ? `hwprefs thread_count` : `sysctl -n hw.ncpu`).to_i
     when /linux/
       `grep -c processor /proc/cpuinfo`.to_i
-    when /freebsd/
+    when /freebsd/, /openbsd/
       `sysctl -n hw.ncpu`.to_i
     when /mswin|mingw/
       require 'win32ole'
-- 
1.7.4.1

from parallel.

grosser avatar grosser commented on June 23, 2024

Thanks -> 0.5.17

from parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.