diff --git a/src/im_mad/remotes/node-probes.d/numa.rb b/src/im_mad/remotes/node-probes.d/numa.rb index b95739e65ef..e310752bd27 100755 --- a/src/im_mad/remotes/node-probes.d/numa.rb +++ b/src/im_mad/remotes/node-probes.d/numa.rb @@ -117,7 +117,7 @@ def normalize_list(list_format) if arr.length > 1 (arr[0].to_i..arr[1].to_i).each {|entry| list << entry } else - list. << arr[0].to_i + list << arr[0].to_i end end list.uniq @@ -142,7 +142,7 @@ def cpu_topology(nodes, node_id) Dir.foreach(cpu_path) do |cp| /cpu(?\d+)/ =~ cp next unless cpu_id - next if cpu_visited.include? cpu_id + next if cpu_visited.include? cpu_id.to_i begin core_path = "#{cpu_path}/#{cp}/topology"