Changeset 192 for trunk/web


Ignore:
Timestamp:
08/11/05 09:54:30 (17 years ago)
Author:
bastiaans
Message:

toga/graph.php:

  • Bugfix: load_report showed legenda multiple times when spanning multiple rrd's
  • Removed xgrid stuff, it was not working very well
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/toga/graph.php

    r159 r192  
    171171                                $run_str = ":'Running Processes'";
    172172                        } else {
    173 
     173                                $load_str = "";
     174                                $cpu_str = "";
     175                                $run_str = "";
    174176                        }
    175177
     
    400402}
    401403
    402 list( $xgrid, $t_format ) = determineXGrid( $period_start, $period_stop );
    403 
    404 if( $t_format != "" ) {
    405         $prnt_start = strftime( $t_format, $period_start );
    406         $prnt_stop = strftime( $t_format, $period_stop );
    407         $series = "COMMENT:'     Timescale $prnt_start - $prnt_stop' " . $series;
    408 }
     404#list( $xgrid, $t_format ) = determineXGrid( $period_start, $period_stop );
     405
     406#if( $t_format != "" ) {
     407#       $prnt_start = strftime( $t_format, $period_start );
     408#       $prnt_stop = strftime( $t_format, $period_stop );
     409#       $series .= " COMMENT:'     Timescale $prnt_start - $prnt_stop' ";
     410#}
    409411
    410412
     
    412414# Generate the rrdtool graph command.
    413415#
     416#$command = RRDTOOL . " graph - --start $period_start --end $period_stop ".
     417#       "--width $width --height $height $upper_limit $lower_limit ".
     418#       "--title '$title' $vertical_label $extras $background $xgrid ".
     419#       $series;
    414420$command = RRDTOOL . " graph - --start $period_start --end $period_stop ".
    415         "--width $width --height $height $upper_limit $lower_limit ".
    416         "--title '$title' $vertical_label $extras $background $xgrid ".
     421        "--width $width --height $height ".
     422        "--title '$title' $extras $background ".
    417423        $series;
    418424
Note: See TracChangeset for help on using the changeset viewer.