vidibus-sysinfo 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vidibus/sysinfo/core.rb +2 -2
- data/lib/vidibus/sysinfo/version.rb +1 -1
- metadata +2 -2
data/lib/vidibus/sysinfo/core.rb
CHANGED
@@ -14,8 +14,8 @@ module Vidibus
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def parse(output)
|
17
|
-
cores = output[/Core\(s\) per socket:\s+(\d+)
|
18
|
-
sockets = output[/Socket\(s\):\s+(\d+)
|
17
|
+
cores = output[/Core\(s\) per socket:\s+(\d+)/i, 1]
|
18
|
+
sockets = output[/Socket\(s\):\s+(\d+)/i, 1]
|
19
19
|
if cores && sockets
|
20
20
|
cores.to_i * sockets.to_i
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-sysinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash: -
|
146
|
+
hash: -414035484912396816
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|