Ignore:
Timestamp:
03/24/13 20:18:46 (11 years ago)
Author:
ramonb
Message:
  • make sure range is correctly set and passed on
File:
1 edited

Legend:

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

    r738 r739  
    11211121                    //printf("last job %s job start %s runningtime %s period start %s", $last_displayed_job, $jobstart, $job_runningtime, $period_start);
    11221122                    $graphargs     = ($reports[$metricname]) ? "g=$metricname&" : "m=$metricname&";
    1123                     $graphargs     .= "z=overview-medium&c=$cluster_url&h=$host_url&l=$load_color&v=".$val['VAL']."&job_start=$job_start&period_start=$period_start&period_stop=$period_end";
    1124                     $host_link   = "\"?j_view=overview-host&c=$cluster_url&r=$range&h=$host_url&job_start=$jobstart&period_start=$period_start&period_stop=$period_end\"";
     1123                    $graphargs    .= "z=overview-medium&c=$cluster_url&r=$range&h=$host_url&l=$load_color&v=".$val['VAL']."&job_start=$job_start";
     1124                    $host_link     = "?j_view=overview-host&c=$cluster_url&r=$range&h=$host_url&job_start=$jobstart";
     1125
     1126                    if( $range == 'job' )
     1127                    {
     1128                        $graphargs     .= "&period_start=$period_start&period_stop=$period_end";
     1129                        $host_link     .= "&period_start=$period_start&period_stop=$period_end";
     1130                    }
     1131                    else
     1132                    {
     1133                        $graphargs     .= "&st=$period_end";
     1134                        $host_link     .= "&st=$period_end";
     1135                    }
    11251136                    if( $max > 0 )
    11261137                    {
     
    11321143                    $cell    = "<td class=$class>".  "<b><a href=$host_link>$host</a></b><br>".  "<i>$metricname:</i> <b>$textval</b></td>";
    11331144                } else {
    1134                     $cell    = "<td><a href=$host_link>" . "<img src=\"./graph.php?$graphargs\" " . "alt=\"$host\" border=0></a></td>";
     1145                    $cell    = "<td><a href=\"$host_link\">" . "<img src=\"./graph.php?$graphargs\" " . "alt=\"$host\" border=0></a></td>";
    11351146                }
    11361147
Note: See TracChangeset for help on using the changeset viewer.