fix performance issue with acp

This commit is contained in:
Barış Soner Uşaklı
2016-03-09 22:15:03 +02:00
parent bd6d44aeaa
commit 53249de799
4 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ var async = require('async'),
if (set === 'users:online') {
var count = parseInt(stop, 10) === -1 ? stop : stop - start + 1;
var now = Date.now();
db.getSortedSetRevRangeByScore(set, start, count, now, now - 300000, callback);
db.getSortedSetRevRangeByScore(set, start, count, '+inf', now - 300000, callback);
} else {
db.getSortedSetRevRange(set, start, stop, callback);
}