Class: Vmstat::LoadAverage

Inherits:
Struct
  • Object
show all
Defined in:
lib/vmstat/load_average.rb

Overview

In UNIX computing, the system load is a measure of the amount of computational work that a computer system performs. The load average represents the average system load over a period of time. Source: wikipedia(en).

Instance Attribute Summary collapse

Instance Attribute Details

#fifteen_minutesFloat

The load for the last fifteen minutes.

Returns:

  • (Float)

    the current value of fifteen_minutes



9
10
11
# File 'lib/vmstat/load_average.rb', line 9

def fifteen_minutes
  @fifteen_minutes
end

#five_minutesFloat

The load for the last five minutes.

Returns:

  • (Float)

    the current value of five_minutes



9
10
11
# File 'lib/vmstat/load_average.rb', line 9

def five_minutes
  @five_minutes
end

#one_minuteFloat

The load for the last minute.

Returns:

  • (Float)

    the current value of one_minute



9
10
11
# File 'lib/vmstat/load_average.rb', line 9

def one_minute
  @one_minute
end