Changeset 733
- Timestamp:
- 03/24/13 14:32:34 (10 years ago)
- Location:
- branches/0.4/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/graph.php
r731 r733 524 524 525 525 # Calculate time range. 526 if ( isset($sourcetime) )526 if ( isset($sourcetime) ) 527 527 { 528 528 $end = $sourcetime; … … 532 532 # Fix from Phil Radden, but step is not always 15 anymore. 533 533 if ($range=="month") 534 { 534 535 $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 } 542 else 542 543 { 543 544 $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; 547 548 } 548 549 549 550 $debug=0; 551 552 if( !isset( $load_color ) ) 553 { 554 $load_color = '000000'; 555 } 550 556 551 557 # Did we generate a command? Run it. -
branches/0.4/web/addons/job_monarch/overview.php
r732 r733 1019 1019 } 1020 1020 } 1021 $cpus = 0; 1021 1022 1022 1023 $cpus = $metrics[$host]["cpu_num"]["VAL"]; 1023 1024 1024 if ( !$cpus)1025 if( $cpus == 0 ) 1025 1026 { 1026 1027 $cpus = 1; … … 1081 1082 $val = $metrics[$host][$metricname]; 1082 1083 $class = "metric"; 1083 $host_link = "\"../../?c=$cluster_url&h=$host_url&r=job&jr=$jobrange&js=$jobstart\"";1084 1084 1085 1085 if ( $val["TYPE"] == "timestamp" || $always_timestamp[$metricname] ) … … 1101 1101 $graphargs = ($reports[$metricname]) ? "g=$metricname&" : "m=$metricname&"; 1102 1102 $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"; 1103 $host_link = "\"?j_view=host&c=$cluster_url&h=$host_url&job&jr=$jobrange&js=$jobstart&period_start=$period_start&period_stop=$period_end\""; 1103 1104 if( $max > 0 ) 1104 1105 {
Note: See TracChangeset
for help on using the changeset viewer.