Changeset 39d075686094cb24db6cfdfcb76174e6dba6adc7
- Timestamp:
- 06/17/08 03:19:55
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1213672795 +0000
- git-parent:
[6b9f38ffb400becb8ab312d34abd2981bca9fe87]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1213672795 +0000
- Message:
multiple metrics with the same target/name over time -- different uuid/sids
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbcb4543 |
r39d0756 |
|
| 67 | 67 | $rv = array(); |
|---|
| 68 | 68 | while($row = $sth->fetch()) { |
|---|
| 69 | | if(!isset($rv[$row['check_name']])) |
|---|
| 70 | | $rv[$row['check_name']] = array ('id' => $row['id'], |
|---|
| 71 | | 'text' => array(), |
|---|
| 72 | | 'numeric' => array() ); |
|---|
| 73 | | $rv[$row['check_name']][$row['metric_type']][] = $row['metric_name']; |
|---|
| | 69 | $label = $row['check_name']."(".$row['sid'].")"; |
|---|
| | 70 | if(!isset($rv[$label])) |
|---|
| | 71 | $rv[$label] = array ('id' => $row['id'], |
|---|
| | 72 | 'text' => array(), |
|---|
| | 73 | 'numeric' => array() ); |
|---|
| | 74 | $rv[$label][$row['metric_type']][] = $row['metric_name']; |
|---|
| 74 | 75 | } |
|---|
| 75 | 76 | return $rv; |
|---|