Project

General

Profile

« Previous | Next » 

Revision c2c32409

Added by Greg Sutcliffe over 10 years ago

Fixes #3720 - Add description field to operatingsystem

View differences:

app/helpers/statistics_helper.rb
def charts
options = {:class => "statistics-pie small", :expandable => true, :'border' => 0, :show_title => true}
[
flot_pie_chart("os_dist" ,_("OS Distribution"), @os_count, options.merge(:search => "facts.operatingsystem=~VAL1~ and facts.operatingsystemrelease=~VAL2~")),
flot_pie_chart("os_dist" ,_("OS Distribution"), @os_count, options.merge(:search => "os_description=~VAL1~")),
flot_pie_chart("arch_dist" ,_("Architecture Distribution"), @arch_count, options.merge( :search => "facts.architecture=~VAL1~")),
flot_pie_chart("env_dist" ,_("Environments Distribution"), @env_count, options.merge( :search => "environment=~VAL1~" )),
flot_pie_chart("cpu_num" ,_("Number of CPUs"), @cpu_count,options.merge( :search => "facts.processorcount=~VAL1~")),

Also available in: Unified diff