Fix: Add timestamp information for openstack telemetry

Change-Id: I4ea0df183b0e11fc67a3d03c835e2863770c7795
This commit is contained in:
Jian Li 2018-06-27 19:21:14 +09:00
parent 6ed9cf0658
commit de4ef40fe4

View File

@ -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());