Added ms unit to ping table

This commit is contained in:
Rsl1122 2019-08-25 11:31:54 +03:00
parent b754fa97e2
commit d10aaa46d0
2 changed files with 4 additions and 4 deletions

View File

@ -192,9 +192,9 @@ public class JSONFactory {
Map<String, Object> tableEntry = new HashMap<>(); Map<String, Object> tableEntry = new HashMap<>();
tableEntry.put("country", geolocation); tableEntry.put("country", geolocation);
tableEntry.put("avg_ping", ping.getAverage()); tableEntry.put("avg_ping", formatters.decimals().apply(ping.getAverage()) + " ms");
tableEntry.put("min_ping", ping.getMin()); tableEntry.put("min_ping", ping.getMin() + " ms");
tableEntry.put("max_ping", ping.getMax()); tableEntry.put("max_ping", ping.getMax() + " ms");
tableEntries.add(tableEntry); tableEntries.add(tableEntry);
} }
return tableEntries; return tableEntries;

View File

@ -864,7 +864,7 @@ public interface DatabaseTest {
OptionalAssert.equals(1, container.getValue(PlayerKeys.KICK_COUNT)); OptionalAssert.equals(1, container.getValue(PlayerKeys.KICK_COUNT));
List<GeoInfo> expectedGeoInfo = List<GeoInfo> expectedGeoInfo =
Collections.singletonList(new GeoInfo("1.2.3.4", "TestLoc", 223456789)); Collections.singletonList(new GeoInfo("", "TestLoc", 223456789));
OptionalAssert.equals(expectedGeoInfo, container.getValue(PlayerKeys.GEO_INFO)); OptionalAssert.equals(expectedGeoInfo, container.getValue(PlayerKeys.GEO_INFO));
List<Nickname> expectedNicknames = Collections.singletonList(new Nickname("TestNick", -1, serverUUID())); List<Nickname> expectedNicknames = Collections.singletonList(new Nickname("TestNick", -1, serverUUID()));