Method: CPU::Processor#temperature

Defined in:
lib/cpu/processor.rb

#temperatureObject

Returns the core temperature of this Processor as an integer number. This should work on all Core2 architecures if you set CPU.t_j_max to the correct value for your Processor. On i7 architectures (and newer?) it should work without any further configuration.



58
59
60
61
62
63
64
65
# File 'lib/cpu/processor.rb', line 58

def temperature
  if defined?(@temperature)
    @temperature
  else
    my_t_j_max = t_j_max.nonzero? || CPU.t_j_max
    my_t_j_max - t_j_max_distance
  end
end