Changeset d8ec8a60736f5301ec76a7564a5009261f7a5909

Show
Ignore:
Timestamp:
07/28/08 17:24:12 (6 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
  • ui/web/htdocs/generic_settings.php

    rc2b3734 rd8ec8a6  
    2020$autounits = 0; 
    2121foreach(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, 
    2323             $matches); 
    2424  $settings = $graph_settings[$i++]; 
     
    3232  else if($matches[1] == 'd') 
    3333    $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  } 
    3438  else 
    3539    $driver->addChangeSet($matches[4], $matches[5]);