lib/rubysermon/mod/cpu.rb
def91ab1
 module Rubysermon
 	class Cpu < ModTemplate
 
7175b248
 		def initialize
01ff794e
 			@y_axis = "CPU Load"
 			@graph_name = "CPU Load In Time"
7175b248
 
01ff794e
 			@cpu_count = File.readlines("/proc/stat").select { |line|
 				line =~ /^cpu[\d]/
 			}.length
4bf9b346
 
 			@load = 0
7175b248
 		end
 
01ff794e
 		def load_options
 
 		end
 
 		def results
4bf9b346
 			@load = File.read("/proc/loadavg").split(" ").first.to_s
01ff794e
 		end
 
 		def notify?
 
 		end
 
 		def y_axis_name
 			@y_axis
 		end
 
 		def graph_name
 			"#@graph_name (CPUs: #@cpu_count)"
 		end
def91ab1
 	end
 end