|
@@ -70,6 +70,7 @@ class NasOnuOctetsCommand extends BaseCommand
|
|
|
|
|
|
//$key_nas_scan = "nas_scan_{$this->d_s}";
|
|
|
$key_nas_onu_bandwidth = "nas_bandwidth_onu_{$this->d_s}";
|
|
|
+
|
|
|
$saveHistoric = (int) $input->getOption('save-historic');
|
|
|
$inicio = microtime(true);
|
|
|
|
|
@@ -137,10 +138,11 @@ class NasOnuOctetsCommand extends BaseCommand
|
|
|
$totalConsOut += $outAcc;
|
|
|
$totalConsIn += $inAcc;
|
|
|
|
|
|
- $bandwidthCached[$index] = array('t' => $t1, 'inOct' => $in1, 'outOct' => $out1, 'inAcc' => $inAcc, 'outAcc' => $outAcc, 'inBand' => $inBandwidth, 'outBand' => $outBandwidth);
|
|
|
+ $bandwidthCached[$index] = array('sn' => $sn, 't' => $t1, 'inOct' => $in1, 'outOct' => $out1, 'inAcc' => $inAcc, 'outAcc' => $outAcc, 'inBand' => $inBandwidth, 'outBand' => $outBandwidth);
|
|
|
} else {
|
|
|
- $bandwidthCached[$index] = array('t' => $t1, 'inOct' => $in1, 'outOct' => $out1, 'inAcc' => 0, 'outAcc' => 0, 'inBand' => 0, 'outBand' => 0);
|
|
|
+ $bandwidthCached[$index] = array('sn' => $sn, 't' => $t1, 'inOct' => $in1, 'outOct' => $out1, 'inAcc' => 0, 'outAcc' => 0, 'inBand' => 0, 'outBand' => 0);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
$this->setData($key_nas_onu_bandwidth, $bandwidthCached, true);
|