This commit is contained in:
Barış Soner Uşaklı
2018-10-29 12:18:11 -04:00
parent 5ee4529a8e
commit 2e579ee0f9
4 changed files with 8 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ User.getUidsFromSet = function (set, start, stop, callback) {
if (set === 'users:online') {
var count = parseInt(stop, 10) === -1 ? stop : stop - start + 1;
var now = Date.now();
db.getSortedSetRevRangeByScore(set, start, count, '+inf', now - 300000, callback);
db.getSortedSetRevRangeByScore(set, start, count, '+inf', now - (meta.config.onlineCutoff * 60000), callback);
} else {
db.getSortedSetRevRange(set, start, stop, callback);
}