|
|
@ -29,10 +29,20 @@ exports.totalmem = binding.getTotalMem; |
|
|
|
exports.cpus = binding.getCPUs; |
|
|
|
exports.type = binding.getOSType; |
|
|
|
exports.release = binding.getOSRelease; |
|
|
|
exports.getNetworkInterfaces = binding.getInterfaceAddresses; |
|
|
|
exports.networkInterfaces = binding.getInterfaceAddresses; |
|
|
|
exports.arch = function() { |
|
|
|
return process.arch; |
|
|
|
}; |
|
|
|
exports.platform = function() { |
|
|
|
return process.platform; |
|
|
|
}; |
|
|
|
|
|
|
|
var warnNetworkInterfaces = true; |
|
|
|
exports.getNetworkInterfaces = function() { |
|
|
|
if (warnNetworkInterfaces) { |
|
|
|
console.error("os.getNetworkInterfaces() is deprecated - use os.networkInterfaces()"); |
|
|
|
console.trace(); |
|
|
|
warnNetworkInterfaces = false; |
|
|
|
} |
|
|
|
return exports.networkInterfaces(); |
|
|
|
}; |
|
|
|