Skip to content

Commit

Permalink
Merge pull request #5825 from rk1165/issue_5786
Browse files Browse the repository at this point in the history
Issue #5786 : Revisit Statistics classes
  • Loading branch information
sbordet committed Jan 12, 2021
2 parents 46031c2 + be8d57e commit 03ec5bb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -70,7 +70,7 @@ public void run()
long queueLatency = System.nanoTime() - begin;
queueStats.decrement();
threadStats.increment();
queueLatencyStats.set(queueLatency);
queueLatencyStats.record(queueLatency);
long start = System.nanoTime();
try
{
Expand All @@ -80,7 +80,7 @@ public void run()
{
long taskLatency = System.nanoTime() - start;
threadStats.decrement();
taskLatencyStats.set(taskLatency);
taskLatencyStats.record(taskLatency);
}
}

Expand Down Expand Up @@ -110,7 +110,7 @@ public void reset()
@ManagedAttribute("the number of tasks executed")
public long getTasks()
{
return taskLatencyStats.getTotal();
return taskLatencyStats.getCount();
}

/**
Expand Down

0 comments on commit 03ec5bb

Please sign in to comment.