Changeset 819


Ignore:
Timestamp:
04/11/13 11:17:35 (9 years ago)
Author:
ramonb
Message:
  • set report titles
File:
1 edited

Legend:

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

    r808 r819  
    149149    {
    150150
    151         $style = "CPU";
     151        $title = "CPU: $hostname";
    152152
    153153        $upper_limit = "--upper-limit 100 --rigid";
     
    264264    else if ($graph == "job_report")
    265265    {
    266         $style = "Jobs";
     266        $title = "Jobs";
    267267
    268268        $lower_limit = "--lower-limit 0 --rigid";
     
    318318    else if ($graph == "mem_report")
    319319    {
    320         $style = "Memory";
     320        $title = "Memory: $hostname";
    321321
    322322        $lower_limit = "--lower-limit 0 --rigid";
     
    435435    else if ($graph == "load_report")
    436436    {
    437         $style = "Load";
     437        $title = "Load: $hostname";
    438438
    439439        $lower_limit = "--lower-limit 0 --rigid";
     
    545545    else if ($graph == "network_report")
    546546    {
    547         $style = "Network";
     547        $title = "Network: $hostname";
    548548
    549549        $lower_limit = "--lower-limit 0 --rigid";
     
    636636    else if ($graph == "packet_report")
    637637    {
    638         $style = "Packets";
     638        $title = "Packets: $hostname";
    639639
    640640        $lower_limit = "--lower-limit 0 --rigid";
     
    842842    }
    843843}
    844 else
     844else if( !isset( $title ) )
    845845{
    846846    $title = "$hostname";
Note: See TracChangeset for help on using the changeset viewer.