Changeset 603 for trunk/web2/addons/job_monarch/jobstore.php
- Timestamp:
- 02/17/09 00:19:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/jobstore.php
r602 r603 111 111 function getMetrics( $host=null ) 112 112 { 113 global $metrics ;113 global $metrics, $reports; 114 114 115 115 reset($metrics); 116 117 $context_metrics = array(); 118 116 119 if( !$host) 117 120 { 118 121 $firsthost = key($metrics); 119 122 } 120 123 else 121 124 { 122 125 $firsthost = $host; 123 126 } 124 127 125 128 $first_metrics = $metrics[$firsthost]; 126 129 130 foreach( $first_metrics as $metricname => $metricval ) 131 { 132 $context_metrics[] = $metricname; 133 } 134 135 foreach ($reports as $mr => $mfoo) 136 { 137 $context_metrics[] = $mr; 138 } 139 140 sort( $context_metrics ); 141 127 142 $metric_list = array(); 128 129 143 $metric_count = 0; 130 144 131 foreach( $ first_metrics as $metricname => $metricval)145 foreach( $context_metrics as $metricname ) 132 146 { 133 147 $metric = array();
Note: See TracChangeset
for help on using the changeset viewer.