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

@@ -145,7 +145,7 @@ usersController.getUsersAndCount = function(set, uid, start, stop, callback) {
count: function(next) {
if (set === 'users:online') {
var now = Date.now();
db.sortedSetCount('users:online', now - 300000, now, next);
db.sortedSetCount('users:online', now - 300000, '+inf', next);
} else if (set === 'users:banned') {
db.sortedSetCard('users:banned', next);
} else {