Changeset d8ec8a60736f5301ec76a7564a5009261f7a5909
- Timestamp:
- 07/28/08 17:24:12
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1217265852 +0000
- git-parent:
[ee17710546fba0e00a1dcdc05ea93062cb7117e9]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1217265852 +0000
- Message:
non-negative derivation method
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc2b3734 |
rd8ec8a6 |
|
| 20 | 20 | $autounits = 0; |
|---|
| 21 | 21 | foreach(split(";", $_GET['metric']) as $m) { |
|---|
| 22 | | preg_match('/^(d|n|t)(l|r)(~|-)(\d+)-(.*)$/', $m, |
|---|
| | 22 | preg_match('/^(D|d|n|t)(l|r)(~|-)(\d+)-(.*)$/', $m, |
|---|
| 23 | 23 | $matches); |
|---|
| 24 | 24 | $settings = $graph_settings[$i++]; |
|---|
| … | … | |
| 32 | 32 | else if($matches[1] == 'd') |
|---|
| 33 | 33 | $driver->addDataSet($matches[4], $matches[5], 'true', null, $settings); |
|---|
| | 34 | else if($matches[1] == 'D') { |
|---|
| | 35 | $settings['expression'] = "((".$settings['expression']." > 0) ? (".$settings['expression'].") : 0)"; |
|---|
| | 36 | $driver->addDataSet($matches[4], $matches[5], 'true', null, $settings); |
|---|
| | 37 | } |
|---|
| 34 | 38 | else |
|---|
| 35 | 39 | $driver->addChangeSet($matches[4], $matches[5]); |
|---|