Changeset 372

Show
Ignore:
Timestamp:
12/18/06 14:20:03 (7 years ago)
Author:
max
Message:

Display unique failures/successes for components on main stats page, not raw numbers

Location:
util
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • util/server_daily_maint

    r371 r372  
    502502        return '-' unless ($s or $f); 
    503503        my $n = int(100*$s/($s+$f)); 
    504         my $color = ($n < 50 ? "red" : $n < 90 ? "orange" : "lightgreen"); 
     504        my $color = ($n < 75 ? "red" : $n < 90 ? "orange" : "lightgreen"); 
    505505        return "<font color=\"$color\">$n%</font>"; 
    506506} 
     
    783783                $h->{'NAME'} = $c; 
    784784                $h->{'FOURTH'} = 1 if (($ccount % 4 == 0) && ($ccount > 0)); 
    785                 my @ret = report_count_data(0, 0, "c_".$c."_success_counter", "brief"); 
     785                my @ret = report_count_data(0, 0, "c_".$c."_success_sysid_list", "all"); 
    786786                $h->{'COMPONENT_SUCCESS_RUNS'} = $ret[0]; 
    787787#               $h->{'COMPONENT_SUCCESS_RUNS_TOTAL'} = $ret[1]; 
    788                 @ret = report_count_data(0, 0, "c_".$c."_fail_counter", "all", "ignore-zero"); 
     788                @ret = report_count_data(0, 0, "c_".$c."_fail_sysid_list", "all", "ignore-zero"); 
    789789                $h->{'COMPONENT_FAIL_RUNS'} = $ret[0]; 
    790790#               $h->{'COMPONENT_FAIL_RUNS_TOTAL'} = $ret[1]; 
  • util/server_daily_maint_main.tmpl

    r371 r372  
    115115 
    116116<tr><td align=left valign=top nowrap colspan=2> 
    117 <h2>Detailed Component Statistics</h2> 
     117<h2>Component Statistics</h2> 
    118118<p><table align=center> 
    119119<TMPL_LOOP NAME=COMPONENTS> 
     
    123123 <b>Success: <TMPL_VAR NAME=SUCCESS_RATE_WEEK></b> (wk), 
    124124          <b><TMPL_VAR NAME=SUCCESS_RATE_MONTH></b> (mo)<br> 
    125  <b>Successful runs:</b><br> 
     125 <b>Successful users:</b><br> 
    126126 <TMPL_LOOP NAME=COMPONENT_SUCCESS_RUNS> 
    127127  <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
    128128 </TMPL_LOOP> 
    129  <b>Failed runs:</b><br> 
     129 <b>Failed users:</b><br> 
    130130 <TMPL_LOOP NAME=COMPONENT_FAIL_RUNS> 
    131131  <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li>