commit | de4ef40fe4e9028764494ea339063aea728450af | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Wed Jun 27 19:21:14 2018 +0900 |
committer | Jian Li <pyguni@gmail.com> | Wed Jun 27 10:59:32 2018 +0000 |
tree | 853c61bc2f545649d5211ecb071be259767abe4b | |
parent | 6ed9cf065889034e9e950368af0c39c48aa44e5d [diff] |
Fix: Add timestamp information for openstack telemetry Change-Id: I4ea0df183b0e11fc67a3d03c835e2863770c7795
diff --git a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/impl/StatsFlowRuleManager.java b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/impl/StatsFlowRuleManager.java index e2f505c..54f454e 100644 --- a/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/impl/StatsFlowRuleManager.java +++ b/apps/openstacktelemetry/app/src/main/java/org/onosproject/openstacktelemetry/impl/StatsFlowRuleManager.java
@@ -319,12 +319,13 @@ // 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());