More docs, total user count MCI and stat

This commit is contained in:
Bryan Ashby
2022-05-01 19:58:00 -06:00
parent 44505f664a
commit d0db38a544
9 changed files with 57 additions and 5 deletions

View File

@@ -304,6 +304,10 @@ const PREDEFINED_MCI_GENERATORS = {
// :TODO: TZ - Average *system* post/call ratio (iNiQUiTY)
// :TODO: ?? - Total users on system
TU : function totalSystemUsers() {
return StatLog.getSystemStatNum(SysProps.TotalUserCount) || 1;
},
LC : function lastCallerUserName() { // Obv/2
const lastLogin = StatLog.getSystemStat(SysProps.LastLogin) || {};
return lastLogin.userName || 'N/A';