This is an automated email from the ASF dual-hosted git repository. domgarguilo pushed a commit to branch 3.1 in repository https://gitbox.apache.org/repos/asf/accumulo.git
commit 3d19788123b5e28e39308610ec334cf0bf2bccc3 Author: Dom Garguilo <domgargu...@apache.org> AuthorDate: Wed Nov 27 12:09:11 2024 -0500 Remove unused method from Monitor.java PR #5108 removed the graphs from the monitor. A lot of supporting code was able to be removed too. This commit removes one of those methods that was left out of the initial PR. --- .../src/main/java/org/apache/accumulo/monitor/Monitor.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java index 7a2b61fe90..3b2e618456 100644 --- a/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java +++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java @@ -201,18 +201,6 @@ public class Monitor extends AbstractServer implements HighlyAvailableService { return totalRate; } - synchronized long calculateCount() { - long count = 0; - - for (Entry<String,Pair<Long,Long>> entry : prevSamples.entrySet()) { - Pair<Long,Long> prevSample = entry.getValue(); - Pair<Long,Long> sample = samples.get(entry.getKey()); - - count += sample.getSecond() - prevSample.getSecond(); - } - - return count; - } } public void fetchData() {