[Reconnoiter-devel] [reconnoiter commit] r454 - trunk/ui/web/lib

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Thu Sep 25 09:26:23 EDT 2008


Author: jesus
Date: 2008-09-25 09:26:22 -0400 (Thu, 25 Sep 2008)
New Revision: 454

Modified:
   trunk/ui/web/lib/Reconnoiter_DataContainer.php
Log:
detect autounits use, refs #22

Modified: trunk/ui/web/lib/Reconnoiter_DataContainer.php
===================================================================
--- trunk/ui/web/lib/Reconnoiter_DataContainer.php	2008-09-25 13:26:03 UTC (rev 453)
+++ trunk/ui/web/lib/Reconnoiter_DataContainer.php	2008-09-25 13:26:22 UTC (rev 454)
@@ -83,11 +83,12 @@
     if($this->units == 0) $this->units = 1;
   }
   function autounits($value) {
+    $this->auto_units_on = true;
     $this->__calc();
     return $value / $this->units;
   }
   function autounit() {
-    //$this->__calc();
+    if(!$this->auto_units_on) return '';
     switch($this->units) {
       case 0.000000001: return 'n';
       case 0.000001: return 'u';



More information about the Reconnoiter-devel mailing list