v 1.4.7 - fixed packetloss value, !LAST RELEASE!

Fixed packetloss in server status.
This is last release of ts-website 1. Please upgrade to ts-website 2 when it becomes available
This commit is contained in:
Wruczek
2018-08-27 04:40:48 +02:00
parent 2ded29b1d7
commit 60bde54f07
3 changed files with 12 additions and 4 deletions

View File

@ -23,7 +23,7 @@ function checkStatus() {
var version = json.version;
var platform = json.platform;
var uptime = json.uptime;
var averagePacketloss = Math.round(json.averagePacketloss * 100) / 100;
var averagePacketloss = Math.round(json.averagePacketloss * 10000) / 100;
var averagePing = Math.round(json.averagePing * 100) / 100;
var platformIcon = '<i class="fa %s fa-fw" title="' + platform + '" aria-hidden="true"></i>';