Add Process/enig start ingress/egress bytes stats

This commit is contained in:
Bryan Ashby
2022-08-01 23:09:18 -06:00
parent 044cc24418
commit 715202680e
10 changed files with 51 additions and 0 deletions

View File

@@ -413,6 +413,8 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
const sysMemStats = StatLog.getSystemStat(SysProps.SystemMemoryStats) || {};
const sysLoadStats = StatLog.getSystemStat(SysProps.SystemLoadStats) || {};
const lastLoginStats = StatLog.getSystemStat(SysProps.LastLogin);
const processTrafficStats =
StatLog.getSystemStat(SysProps.ProcessTrafficStats) || {};
const now = moment();
@@ -479,6 +481,8 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
UserProps.NewAddressedToMessageCount,
MailCountTTLSeconds
),
processBytesIngress: processTrafficStats.ingress || 0,
processBytesEgress: processTrafficStats.egress || 0,
};
return cb(null);