|
@@ -125,8 +125,8 @@ class ZtePonOctetsCommand extends BaseCommand
|
|
$oltBandwidth["{$subId}_outbandwidth_olt"] = "{$totalOut}|g";
|
|
$oltBandwidth["{$subId}_outbandwidth_olt"] = "{$totalOut}|g";
|
|
|
|
|
|
$div = 1073741824; //bytes => giga
|
|
$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 = array();
|
|
$oltConsumption["{$subId}_inconsumption_olt"] = "{$consIn}|g";
|
|
$oltConsumption["{$subId}_inconsumption_olt"] = "{$consIn}|g";
|
|
$oltConsumption["{$subId}_outconsumption_olt"] = "{$consOut}|g";
|
|
$oltConsumption["{$subId}_outconsumption_olt"] = "{$consOut}|g";
|