Ignore:
Timestamp:
03/24/13 14:32:34 (11 years ago)
Author:
ramonb
Message:

graph.php:

  • fixed load color background

overview.php:

  • use our own host_overview not Ganglia's anymore (has no job range/start anymore)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/graph.php

    r731 r733  
    524524
    525525# Calculate time range.
    526 if( isset($sourcetime) )
     526if ( isset($sourcetime) )
    527527{
    528528    $end = $sourcetime;
     
    532532    # Fix from Phil Radden, but step is not always 15 anymore.
    533533    if ($range=="month")
     534    {
    534535        $end = floor($end / 672) * 672;
    535 
    536     $command = $conf['rrdtool']. " graph - --start $start --end $end ".
    537         "--width $width --height $height $lower_limit ".
    538         "--title '$title' $extras $background ".
    539         $series;
    540 }
    541 else 
     536    }
     537        $command = $conf['rrdtool']. " graph - --start $start --end $end ".
     538                "--width $width --height $height $lower_limit ".
     539                "--title '$title' $extras $background ".
     540                $series;
     541}
     542else
    542543{
    543544    $command = $conf['rrdtool'] . " graph - --start $period_start --end $period_stop ".
    544         "--width $width --height $height $lower_limit ".
    545         "--title '$title' $extras $background ".
    546         $series;
     545               "--width $width --height $height $lower_limit --color BACK#$load_color ".
     546               "--title '$title' $extras $background ".
     547               $series;
    547548}
    548549
    549550$debug=0;
     551
     552if( !isset( $load_color ) )
     553{
     554    $load_color = '000000';
     555}
    550556
    551557# Did we generate a command?   Run it.
Note: See TracChangeset for help on using the changeset viewer.