~charm-helpers/charm-helpers/devel

Viewing all changes in revision 525.

  • Committer: James Page
  • Date: 2016-01-29 09:31:39 UTC
  • mfrom: (524.1.1 fix-num-cpus-xenial)
  • Revision ID: james.page@ubuntu.com-20160129093139-38meqq18o53abz0a
Support number of cpu detection on Ubuntu 16.04

The version of psutil in 16.04 does not have NUM_CPUS.

Use the new cpu_count function if present, otherwise use NUM_CPUS.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: