lib/cpu.rb in cpu-0.0.3 vs lib/cpu.rb in cpu-0.0.4

- old
+ new

@@ -1,6 +1,6 @@ -require 'spruz/uniq_by' +require 'tins/uniq_by' require 'cpu/shared' require 'cpu/processor' require 'cpu/msr' require 'cpu/load' require 'cpu/usage_sampler' @@ -49,10 +49,10 @@ end processors = Dir.open('/dev/cpu').inject([]) do |ps, processor_id| processor_id =~ /\A\d+\Z/ or next ps ps << processor_id.to_i end - processors.extend Spruz::UniqBy + processors.extend Tins::UniqBy processors.sort! @num_processors = processors.size @num_cores = cpu_cores.invert.size processors.map! do |processor_id| Processor.new(processor_id, cpu_cores[processor_id])