mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
Fix: Add timestamp information for openstack telemetry
Change-Id: I4ea0df183b0e11fc67a3d03c835e2863770c7795
This commit is contained in:
parent
6ed9cf0658
commit
de4ef40fe4
@ -319,12 +319,13 @@ public class StatsFlowRuleManager implements StatsFlowRuleAdminService {
|
||||
|
||||
// TODO: need to collect error and drop packets stats
|
||||
// TODO: need to make the refresh interval configurable
|
||||
sBuilder.withStartupTime(0)
|
||||
sBuilder.withStartupTime(System.currentTimeMillis())
|
||||
.withFstPktArrTime(System.currentTimeMillis())
|
||||
.withLstPktOffset(REFRESH_INTERVAL * MILLISECONDS)
|
||||
.withCurrAccPkts((int) entry.packets())
|
||||
.withCurrAccBytes(entry.bytes())
|
||||
.withErrorPkts((short) 0)
|
||||
.withDropPkts((short) 0)
|
||||
.withLstPktOffset(REFRESH_INTERVAL * MILLISECONDS);
|
||||
.withDropPkts((short) 0);
|
||||
|
||||
fBuilder.withStatsInfo(sBuilder.build());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user