Add linux collection of cpu min/max.

Make cpu mhz default the current mhz.
This commit is contained in:
Matthew Kent committed 2009-08-12 23:43:35 -07:00
1 parent 5c8d1edbae
commit 09f3418c1a
4 files changed
+34 -3

No files matched your search

+11 -1
View File
@@ -471,9 +471,19 @@ use vars qw(%classes %cmds);
},
{
name => 'mhz', type => 'Int',
desc => 'CPU speed',
desc => 'Current CPU speed',
plat => 'AFHLSW'
},
{
name => 'mhz_max', type => 'Int',
desc => 'Maximum CPU speed',
plat => 'L'
},
{
name => 'mhz_min', type => 'Int',
desc => 'Maximum CPU speed',
plat => 'L'
},
{
name => 'cache_size', type => 'Long',
desc => 'CPU cache size',
+3 -1
View File
@@ -11,6 +11,8 @@ puts num.to_s + " total CPUs.."
infos.each do |info|
puts "Vendor........" + info.vendor
puts "Model........." + info.model
puts "Mhz..........." + info.mhz.to_s
puts "Current Mhz..." + info.mhz.to_s
puts "Maximum Mhz..." + info.mhz_max.to_s
puts "Minimum Mhz..." + info.mhz_min.to_s
puts "Cache size...." + info.cache_size.to_s
end