rock
2014-05-09 17:01:42 UTC
#474: Autobuild: fails to count the number of physical cores (vmware & ubuntu
14.04)
----------------------------+-----------------
Reporter: Alexander.Duda | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Keywords:
----------------------------+-----------------
autobuild quits with the following error message because of nil values in
info array.
.gems/gems/autobuild-1.7.10/lib/autobuild/subcommand.rb:101:in `+': nil
can't be coerced into Fixnum (TypeError)
The reason for the the nil values is the result of cpuinfo which is for
ubuntu 14.04 and vmware 6 (full output is attached)
processor : 0
physical id: 0
processor : 1
physical id: 2
processor : 2
physical id: 4
..
One fix would be to compact info or to use a hash instead of an array:
@processor_count = info.compact.inject(&:+)
14.04)
----------------------------+-----------------
Reporter: Alexander.Duda | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Keywords:
----------------------------+-----------------
autobuild quits with the following error message because of nil values in
info array.
.gems/gems/autobuild-1.7.10/lib/autobuild/subcommand.rb:101:in `+': nil
can't be coerced into Fixnum (TypeError)
The reason for the the nil values is the result of cpuinfo which is for
ubuntu 14.04 and vmware 6 (full output is attached)
processor : 0
physical id: 0
processor : 1
physical id: 2
processor : 2
physical id: 4
..
One fix would be to compact info or to use a hash instead of an array:
@processor_count = info.compact.inject(&:+)
--
Ticket URL: <https://rock.opendfki.de/ticket/474>
rock <https://rock.opendfki.de>
rock: the robot construction kit
Ticket URL: <https://rock.opendfki.de/ticket/474>
rock <https://rock.opendfki.de>
rock: the robot construction kit