mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
show seconds like search page
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"search": "Search",
|
||||
"enter_username": "Enter a username to search",
|
||||
"load_more": "Load More",
|
||||
"users-found-search-took": "%1 user(s) found! Search took %2 ms.",
|
||||
"users-found-search-took": "%1 user(s) found! Search took %2 seconds.",
|
||||
"filter-by": "Filter By",
|
||||
"online-only": "Online only",
|
||||
"picture-only": "Picture only"
|
||||
|
||||
@@ -270,12 +270,6 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
Notifications.prune = function() {
|
||||
var start = process.hrtime();
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
winston.info('[notifications.prune] Removing expired notifications from the database.');
|
||||
}
|
||||
|
||||
var week = 604800000,
|
||||
numPruned = 0;
|
||||
|
||||
@@ -307,10 +301,6 @@ var async = require('async'),
|
||||
if (err) {
|
||||
return winston.error('Encountered error pruning notifications: ' + err.message);
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
winston.info('[notifications.prune] Notification pruning completed. ' + numPruned + ' expired notification' + (numPruned !== 1 ? 's' : '') + ' removed.');
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
@@ -46,11 +46,8 @@ module.exports = function(User) {
|
||||
User.getUsers(uids, uid, next);
|
||||
},
|
||||
function(userData, next) {
|
||||
|
||||
var diff = process.hrtime(startTime);
|
||||
var timing = (diff[0] * 1e3 + diff[1] / 1e6).toFixed(1);
|
||||
var data = {
|
||||
timing: timing,
|
||||
timing: (process.elapsedTimeSince(startTime) / 1000).toFixed(2),
|
||||
users: userData,
|
||||
matchCount: matchCount
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user