From 60bde54f072103895d2162e8d07e34bb43c722de Mon Sep 17 00:00:00 2001 From: Wruczek Date: Mon, 27 Aug 2018 04:40:48 +0200 Subject: [PATCH] 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 --- include/footer.php | 12 ++++++++++-- include/modulecheck.php | 2 +- js/status.js | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/footer.php b/include/footer.php index 4a0681a..8356ea1 100644 --- a/include/footer.php +++ b/include/footer.php @@ -10,9 +10,17 @@
diff --git a/js/status.js b/js/status.js index a7feb78..da01d02 100644 --- a/js/status.js +++ b/js/status.js @@ -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 = '';