From b2c72c0bfb8b37bdae65c7a5bf8a8c91f6908d5c Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Wed, 9 Aug 2017 00:35:13 -0500 Subject: [PATCH] Revert "Properly sort ping listing to ensure we don't wrongly smooth" This reverts commit a250b3977ac1a3731eeb73f5060472745f17d9ed. --- lib/util.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/util.js b/lib/util.js index 86cb589..d186e55 100644 --- a/lib/util.js +++ b/lib/util.js @@ -54,12 +54,6 @@ function trimUselessPings(data) { for (var x = 0; x < listing.length; x++) { var entry = listing[x]; - // Make sure we're sorted, otherwise the smoothing code below can - // select wrongly get an older (and worse) ping before one with players online. - listing.sort(function(a, b) { - return a[0] - b[0]; - }); - // 0 is the index of the timestamp. // See the convertPingsToGraph method. if (entry[0] - lastTimestamp >= 60 * 1000) {