Many WFC related improvements (WIP)

* Update systeminformation to 5.x
* More work on WFC display of basic stats -- nearly complete
* Disable idle timeout when on WFC
This commit is contained in:
Bryan Ashby
2022-05-01 12:41:20 -06:00
parent 193c203a05
commit dd7d24f22e
9 changed files with 39 additions and 18 deletions

View File

@@ -366,7 +366,7 @@ class StatLog {
const basicSysInfo = {
mem : 'total, free',
currentLoad : 'avgload, currentLoad',
currentLoad : 'avgLoad, currentLoad',
};
SysInfo.get(basicSysInfo)
@@ -380,8 +380,8 @@ class StatLog {
const loadStats = {
// Not avail on BSD, yet.
average : _.get(sysInfo, 'currentLoad.avgload', 0),
current : _.get(sysInfo, 'currentLoad.currentLoad', 0),
average : _.get(sysInfo, 'currentLoad.avgLoad', 0).toFixed(2),
current : _.get(sysInfo, 'currentLoad.currentLoad', 0).toFixed(2),
};
this.setNonPersistentSystemStat(SysProps.SystemLoadStats, loadStats);