system: cpu route
This commit is contained in:
@@ -15,7 +15,8 @@ exports = module.exports = {
|
||||
getLogs,
|
||||
getBlockDevices,
|
||||
runSystemChecks,
|
||||
getProvider
|
||||
getProvider,
|
||||
getCpus
|
||||
};
|
||||
|
||||
const apps = require('./apps.js'),
|
||||
@@ -364,3 +365,7 @@ function getProvider() {
|
||||
const provider = safe.fs.readFileSync(paths.PROVIDER_FILE, 'utf8');
|
||||
return provider ? provider.trim() : 'generic';
|
||||
}
|
||||
|
||||
async function getCpus() {
|
||||
return os.cpus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user