Revert "Properly sort ping listing to ensure we don't wrongly smooth"
This reverts commit a250b3977ac1a3731eeb73f5060472745f17d9ed.
This commit is contained in:
parent
7da33b02b8
commit
b2c72c0bfb
@ -54,12 +54,6 @@ function trimUselessPings(data) {
|
|||||||
for (var x = 0; x < listing.length; x++) {
|
for (var x = 0; x < listing.length; x++) {
|
||||||
var entry = listing[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.
|
// 0 is the index of the timestamp.
|
||||||
// See the convertPingsToGraph method.
|
// See the convertPingsToGraph method.
|
||||||
if (entry[0] - lastTimestamp >= 60 * 1000) {
|
if (entry[0] - lastTimestamp >= 60 * 1000) {
|
||||||
|
Loading…
Reference in New Issue
Block a user