Changeset 823


Ignore:
Timestamp:
04/11/13 18:41:32 (9 years ago)
Author:
ramonb
Message:

graph.php:

  • pass min/max to rrdtool

overview.php:

  • set units as rrd vertical label
Location:
branches/0.4/web/addons/job_monarch
Files:
2 edited

Legend:

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

    r819 r823  
    955955    }
    956956        $command = $conf['rrdtool']. " graph - --start $start --end $end ".
     957                "$upper_limit $lower_limit ".
    957958                "--width $width --height $height $lower_limit $vertical_label ".
    958959                "--title '$title' $extras $background ".
     
    962963{
    963964    $command = $conf['rrdtool'] . " graph - --start $period_start --end $period_stop ".
     965                "$upper_limit $lower_limit ".
    964966               "--width $width --height $height $lower_limit --color BACK#$load_color $vertical_label ".
    965967               "--title '$title' $extras $background ".
  • branches/0.4/web/addons/job_monarch/overview.php

    r822 r823  
    11191119                    //printf("last job %s job start %s runningtime %s period start %s", $last_displayed_job, $jobstart, $job_runningtime, $period_start);
    11201120                    $graphargs     = ($reports[$metricname]) ? "g=$metricname&" : "m=$metricname&";
    1121                     $graphargs    .= "z=overview-medium&c=$cluster_url&r=$range&h=$host_url&l=$load_color&v=".$val['VAL']."&job_start=$job_start";
     1121                    $graphargs    .= "z=overview-medium&c=$cluster_url&r=$range&h=$host_url&l=$load_color&v=".$val['VAL']."&job_start=$job_start&vl=".$val['UNITS'];
    11221122                    $host_link     = "?j_view=overview-host&c=$cluster_url&r=$range&h=$host_url&job_start=$jobstart";
    11231123
Note: See TracChangeset for help on using the changeset viewer.