0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/lib/os.js

11 lines
336 B
JavaScript
Raw Normal View History

2010-12-11 09:49:38 +01:00
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;
2011-01-05 03:30:27 +01:00
exports.release = binding.getOSRelease;