Giter VIP home page Giter VIP logo

Comments (6)

geirawsm avatar geirawsm commented on May 1, 2024

nproc also works on my Raspberry Pi with Wheezy Raspbian. Not sure if this is the same flavor that @inflammable uses, though.

from linux-dash.

commonquail avatar commonquail commented on May 1, 2024

nproc works on 64-bit Ubuntu 12.04 and Mint 16 (Ubuntu 13.10). The information isn't readily available from /proc/cpuinfo; two of my tests include the same number in a cpu cores field but one doesn't have that field and instead prints an extra table for per core.

from linux-dash.

lgaetz avatar lgaetz commented on May 1, 2024

nproc works on Centos 6.4 and Centos 6.2 so by extension I would expect it to work on all Redhat 6.x variants.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

Please check out the most recent commit. I've added a fallback control structure in sh/numberofcores.php, which will execute nproc if the number returned by /proc/cpuinfo is 0.

Please test and let me know if it works on Cent OS and Debian Wheezy.

from linux-dash.

lgaetz avatar lgaetz commented on May 1, 2024

Most recent commit for # cores working on Centos 6.x.

from linux-dash.

inflammable avatar inflammable commented on May 1, 2024

A call to /sh/numberofcores.php in the current version returns:

"1\n"

I'm guessing the \n isn't supposed to be there?

from linux-dash.

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.