+ MCI: PT - total messages posted today (non-private)

+ MCI: TP - total messages/posts on system (non-private, includes imports, only counts *current*, not all of time)
* Move some stats to startup() calls
* Fix some DATE() comparisons in SQL to use 'localtime' as our timestamps include TZ
* Update luciano_blocktronics SYSSTAT to show more info
This commit is contained in:
Bryan Ashby 2018-11-27 21:21:00 -07:00
parent fb13381bb5
commit 6cce013187
12 changed files with 98 additions and 26 deletions

View file

@ -57,7 +57,25 @@ const WellKnownAreaTags = exports.WellKnownAreaTags = {
};
function startup(cb) {
return cleanUpTempSessionItems(cb);
async.series(
[
(callback) => {
return cleanUpTempSessionItems(callback);
},
(callback) => {
getAreaStats( (err, stats) => {
if(!err) {
StatLog.setNonPersistentSystemStat(SysProps.FileBaseAreaStats, stats);
}
return callback(null);
});
}
],
err => {
return cb(err);
}
);
}
function isInternalArea(areaTag) {