Skip to content

Commit

Permalink
Exposes the QueueStatistics API.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Jul 23, 2019
1 parent 8f96fef commit c689dd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/jitsi/utils/queue/QueueStatistics.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public JSONObject getStats()
* @param now the time (in milliseconds since the epoch) at which the
* packet was added.
*/
void add(long now)
public void add(long now)
{
if (firstPacketAddedMs < 0)
{
Expand All @@ -121,7 +121,7 @@ void add(long now)
* @param now the time (in milliseconds since the epoch) at which the
* packet was removed.
*/
void remove(long now)
public void remove(long now)
{
removeRate.update(1, now);
totalPacketsRemoved.incrementAndGet();
Expand All @@ -132,7 +132,7 @@ void remove(long now)
* @param now the time (in milliseconds since the epoch) at which the
* packet was dropped.
*/
void drop(long now)
public void drop(long now)
{
dropRate.update(1, now);
totalPacketsDropped.incrementAndGet();
Expand Down

0 comments on commit c689dd5

Please sign in to comment.