just move a line up, this should make no difference. This is in
preparation of the refactoring in the next commit which moves part of
the report() method out into a new method.
Change-Id: If4912e0d7f9b0ac97fda65f56c5dffb12e608133
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
printSampling(pw, entry.getValue());
printMeter(pw, entry.getValue());
}
+ counters.forEach((key, value) -> oldCounters.put(key, value.getCount()));
pw.close();
} catch (IOException e) {
LOG.error("Failed to report counters to files", e);
}
- counters.forEach((key, value) -> oldCounters.put(key, value.getCount()));
}
private static void printSampling(PrintWriter pw, Sampling sampling) {