Skip to content

Commit

Permalink
Remove unused method from Monitor.java
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DomGarguilo committed Nov 27, 2024
1 parent 970af35 commit 3d19788
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,6 @@ synchronized double calculateRate() {
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() {
Expand Down

0 comments on commit 3d19788

Please sign in to comment.