Round ping to nearest whole number
This commit is contained in:
-4
@@ -1,4 +0,0 @@
|
|||||||
package com.github.manevolent.ts3j.protocol.packet.statistics;
|
|
||||||
|
|
||||||
public class TimedMeasurement {
|
|
||||||
}
|
|
||||||
+1
-1
@@ -112,7 +112,7 @@ public class LocalTeamspeakClientSocket
|
|||||||
|
|
||||||
Pair<Double, Double> ping = getPing();
|
Pair<Double, Double> ping = getPing();
|
||||||
response.add(new CommandSingleParameter("connection_ping",
|
response.add(new CommandSingleParameter("connection_ping",
|
||||||
Double.toString(Math.round(ping.getKey() * 1000D * 1000D) / 1000D)));
|
Double.toString(Math.round(ping.getKey() * 1000D))));
|
||||||
response.add(new CommandSingleParameter("connection_ping_deviation",
|
response.add(new CommandSingleParameter("connection_ping_deviation",
|
||||||
Double.toString(Math.round(ping.getValue() * 1000D * 1000D) / 1000D)));
|
Double.toString(Math.round(ping.getValue() * 1000D * 1000D) / 1000D)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user