Changeset 193


Ignore:
Timestamp:
08/12/05 11:27:55 (19 years ago)
Author:
bastiaans
Message:

toga/graph.php:

  • Lower_limit on 0 for graphs

toga/overview.php:

  • Only add a max to graphs if it can be determined
Location:
trunk/web/addons/toga
Files:
2 edited

Legend:

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

    r192 r193  
    410410#}
    411411
     412$lower_limit = "--lower-limit 0";
    412413
    413414#
     
    419420#       $series;
    420421$command = RRDTOOL . " graph - --start $period_start --end $period_stop ".
    421         "--width $width --height $height ".
     422        "--width $width --height $height $lower_limit ".
    422423        "--title '$title' $extras $background ".
    423424        $series;
  • trunk/web/addons/toga/overview.php

    r188 r193  
    679679                                        $load_color = load_color($host_load[$host]);
    680680                                        $graphargs = ($reports[$metricname]) ? "g=$metricname&" : "m=$metricname&";
    681                                         $graphargs .= "z=small&c=$cluster_url&h=$host_url&l=$load_color" ."&v=$val[VAL]&x=$max&n=$min&r=job&jr=$jobrange&js=$jobstart";
     681                                        $graphargs .= "z=small&c=$cluster_url&h=$host_url&l=$load_color" ."&v=$val[VAL]&r=job&jr=$jobrange&js=$jobstart";
     682                                        if( $max > 0 ) {
     683
     684                                                $graphargs .= "&x=$max&n=$min";
     685                                        }
    682686                                }
    683687                                if ($textval) {
Note: See TracChangeset for help on using the changeset viewer.