ilios 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/ilios/extconf.rb +7 -3
- data/lib/ilios/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e28970c92e0e274f14457318e1ab9ddd17dcdb197cc89084d2d58fe9b51afb14
|
4
|
+
data.tar.gz: 9dab2538fd742cc4f85ae9a864348a97ba6d9655ababbd633c1477781be5274d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe695966bf3b1dacf3825ceb73d689b7b38f4488fb11d3bdea777942aa0c7e5b653d2a3be2eff4cc5cc897af489583deb6ae383874a0c814e4270452091dc4b1
|
7
|
+
data.tar.gz: 310d435e083b862b4e890edd4195ff58363494fd7b4c47612d7cc1fbd794f80faab7da6e2fdb333b26df49326641ab87803805f39e7ff14cab0c915d8d539015
|
data/ext/ilios/extconf.rb
CHANGED
@@ -9,18 +9,22 @@ require 'native-package-installer'
|
|
9
9
|
have_func('malloc_usable_size')
|
10
10
|
have_func('malloc_size')
|
11
11
|
|
12
|
+
MAX_CORES = 8
|
13
|
+
|
12
14
|
def num_cpu_cores
|
13
15
|
cores =
|
14
16
|
begin
|
15
17
|
if RUBY_PLATFORM.include?('darwin')
|
16
|
-
Integer(`sysctl -n hw.ncpu`, 10)
|
18
|
+
Integer(`sysctl -n hw.ncpu`, 10)
|
17
19
|
else
|
18
|
-
Integer(`nproc`, 10)
|
20
|
+
Integer(`nproc`, 10)
|
19
21
|
end
|
20
22
|
rescue StandardError
|
21
23
|
2
|
22
24
|
end
|
23
|
-
|
25
|
+
|
26
|
+
return 1 if cores <= 0
|
27
|
+
cores >= 7 ? MAX_CORES : cores
|
24
28
|
end
|
25
29
|
|
26
30
|
module LibuvInstaller
|
data/lib/ilios/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ilios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
@@ -77,7 +77,7 @@ metadata:
|
|
77
77
|
homepage_uri: https://github.com/Watson1978/ilios
|
78
78
|
source_code_uri: https://github.com/Watson1978/ilios
|
79
79
|
bug_tracker_uri: https://github.com/Watson1978/ilios/issues
|
80
|
-
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.
|
80
|
+
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.4
|
81
81
|
rubygems_mfa_required: 'true'
|
82
82
|
post_install_message:
|
83
83
|
rdoc_options: []
|