Pārlūkot izejas kodu

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

Maxi Schvindt 6 gadi atpakaļ
vecāks
revīzija
6fdd7d4ee8
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Command/FiberhomePonOctetsCommand.php

+ 2 - 2
Command/FiberhomePonOctetsCommand.php

@@ -119,8 +119,8 @@ class FiberhomePonOctetsCommand 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";