Skip to content

Commit 89b1313

Browse files
committed
Update timeDiffSec in StatisticCollector
1 parent 2e47415 commit 89b1313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/net/floodlightcontroller/statistics/StatisticsCollector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void run() {
108108
txBytesCounted = pse.getTxBytes().subtract(spb.getPriorByteValueTx());
109109
}
110110
long speed = getSpeed(npt);
111-
long timeDifSec = ((System.nanoTime() - spb.getStartTime_ns())/1000000) / MILLIS_PER_SEC;
111+
long timeDifSec = ((System.nanoTime() - spb.getStartTime_ns()) / 1000000) / MILLIS_PER_SEC;
112112
portStats.put(npt, SwitchPortBandwidth.of(npt.getNodeId(), npt.getPortId(),
113113
U64.ofRaw(speed),
114114
U64.ofRaw((rxBytesCounted.getValue() * BITS_PER_BYTE) / timeDifSec),

0 commit comments

Comments
 (0)