mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix performance issue with acp
This commit is contained in:
@@ -81,13 +81,13 @@ function getStatsForSet(set, field, callback) {
|
||||
var now = Date.now();
|
||||
async.parallel({
|
||||
day: function(next) {
|
||||
db.sortedSetCount(set, now - terms.day, now, next);
|
||||
db.sortedSetCount(set, now - terms.day, '+inf', next);
|
||||
},
|
||||
week: function(next) {
|
||||
db.sortedSetCount(set, now - terms.week, now, next);
|
||||
db.sortedSetCount(set, now - terms.week, '+inf', next);
|
||||
},
|
||||
month: function(next) {
|
||||
db.sortedSetCount(set, now - terms.month, now, next);
|
||||
db.sortedSetCount(set, now - terms.month, '+inf', next);
|
||||
},
|
||||
alltime: function(next) {
|
||||
getGlobalField(field, next);
|
||||
|
||||
Reference in New Issue
Block a user