use of com.exalttech.trex.ui.models.stats.LatencyStatPoint in project trex-stateless-gui by cisco-system-traffic-generator.
the class PGIDStatsStorage method resetLatencyStats.
private void resetLatencyStats() {
synchronized (latencyLock) {
latencyStatPointShadowMap.clear();
latencyStatPointHistoryMap.forEach((final Integer pgID, final ArrayHistory<LatencyStatPoint> history) -> {
if (!history.isEmpty()) {
final LatencyStatPoint last = history.last();
latencyStatPointShadowMap.put(pgID, history.last());
history.clear();
history.add(last);
}
});
}
}
Aggregations