Prechádzať zdrojové kódy

Bug al guardar ',' en números de 1000.

Maxi Schvindt 6 rokov pred
rodič
commit
4194d5b78b
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Command/ZtePonOctetsCommand.php

+ 2 - 2
Command/ZtePonOctetsCommand.php

@@ -125,8 +125,8 @@ class ZtePonOctetsCommand extends BaseCommand
         $oltBandwidth["{$subId}_outbandwidth_olt"] = "{$totalOut}|g";
 
         $div = 1073741824; //bytes => giga
-        $consIn = number_format(($totalConsIn / $div),3);
-        $consOut = number_format(($totalConsOut / $div),3);
+        $consIn = number_format(($totalConsIn / $div),3,'.','');
+        $consOut = number_format(($totalConsOut / $div),3,'.','');
         $oltConsumption = array();
         $oltConsumption["{$subId}_inconsumption_olt"] = "{$consIn}|g";
         $oltConsumption["{$subId}_outconsumption_olt"] = "{$consOut}|g";