Skip to content

Commit

Permalink
Fix division.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Jun 3, 2019
1 parent 45c5c4a commit b17c15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jitsi/utils/queue/QueueStatistics.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public JSONObject getStats()
stats.put("add_rate", addRate.getRate(now));
stats.put("remove_rate", removeRate.getRate(now));
stats.put("drop_rate", dropRate.getRate(now));
double duration = (now - firstPacketAddedMs) / 1000;
double duration = (now - firstPacketAddedMs) / 1000d;
stats.put("duration_s", duration);
stats.put("average_remove_rate_pps", totalPacketsRemoved.get() / duration);

Expand Down

0 comments on commit b17c15b

Please sign in to comment.