mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Filter Private from area lists/etc.
* Clean up CPU string for MCI display
This commit is contained in:
parent
65d7186a86
commit
52dee0a401
5 changed files with 27 additions and 3 deletions
|
@ -91,7 +91,12 @@ function getPredefinedMCIValue(client, code) {
|
|||
},
|
||||
|
||||
OA : function systemArchitecture() { return os.arch(); },
|
||||
SC : function systemCpuModel() { return os.cpus()[0].model; },
|
||||
SC : function systemCpuModel() {
|
||||
//
|
||||
// Clean up CPU strings a bit for better display
|
||||
//
|
||||
return os.cpus()[0].model.replace(/\s+(?= )|\(R\)|\(TM\)|CPU/g, '');
|
||||
},
|
||||
|
||||
// :TODO: cpu load average (over N seconds): http://stackoverflow.com/questions/9565912/convert-the-output-of-os-cpus-in-node-js-to-percentage
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue