|
@@ -98,8 +98,14 @@ class FiberhomePonOctetsCommand extends BaseCommand
|
|
|
|
|
|
$sendData["{$subId}_inbandwidth_pon_{$ponPort}"] = "{$inBandwidth}|g";
|
|
|
$sendData["{$subId}_outbandwidth_pon_{$ponPort}"] = "{$outBandwidth}|g";
|
|
|
+
|
|
|
+ $div = 1073741824; //bytes => giga
|
|
|
+ $_in = number_format(($inAcc / $div),3,'.','');
|
|
|
+ $_out = number_format(($outAcc / $div),3,'.','');
|
|
|
+ $sendData["{$subId}_inconsumption_pon_{$ponPort}"] = "{$_in}|g";
|
|
|
+ $sendData["{$subId}_outconsumption_pon_{$ponPort}"] = "{$_out}|g";
|
|
|
|
|
|
- if(date("d",$t0) != date("d",$t1)) {
|
|
|
+ if(date("n",$t0) != date("n",$t1)) {
|
|
|
$inAcc = $outAcc = 0;
|
|
|
}
|
|
|
|