mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
var binding = process.binding('os');
|
|
|
|
exports.hostname = binding.getHostname;
|
|
exports.loadavg = binding.getLoadAvg;
|
|
exports.uptime = binding.getUptime;
|
|
exports.freemem = binding.getFreeMem;
|
|
exports.totalmem = binding.getTotalMem;
|
|
exports.cpus = binding.getCPUs;
|
|
exports.type = binding.getOSType;
|
|
exports.release = binding.getOSRelease; |