Ignore:
Timestamp:
08/12/05 11:27:55 (18 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.