mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* New menu stack functional
* @systemMethod:fallbackMenu -> @systemMethod:prevMenu * Lots of cleanup of gotoMenuModule() -> MenuModule.gotoMenu() * Lots of cleanup of fallbackMenuModule() -> MenuModule.prevMenu() * Lots of cleanup of 'next' processing -> MenuModule.nextMenu() * Clean up CPU strings a bit more
This commit is contained in:
parent
15ce69e02c
commit
f7a7423b32
11 changed files with 86 additions and 193 deletions
|
@ -96,9 +96,12 @@ function getPredefinedMCIValue(client, code) {
|
|||
//
|
||||
// Clean up CPU strings a bit for better display
|
||||
//
|
||||
return os.cpus()[0].model.replace(/\s+(?= )|\(R\)|\(TM\)|processor|CPU/g, '');
|
||||
return os.cpus()[0].model.replace(/\(R\)|\(TM\)|processor|CPU/g, '')
|
||||
.replace(/\s+(?= )/g, '');
|
||||
},
|
||||
|
||||
// :TODO: MCI for core count, e.g. os.cpus().length
|
||||
|
||||
// :TODO: cpu load average (over N seconds): http://stackoverflow.com/questions/9565912/convert-the-output-of-os-cpus-in-node-js-to-percentage
|
||||
// :TODO: Node version/info
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue