Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "statware", | ||
"description": "Node.js process/system/custom metrics aggregation suite with middle-ware like abilities.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Bryce B. Baril <bryce@ravenwall.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -13,2 +13,6 @@ "use strict"; | ||
stats.installSystemInfo = function () { | ||
var sumSpeed = function (p, c) { | ||
return p + c.speed | ||
} | ||
stats.registerHelper(function (status, next) { | ||
@@ -32,3 +36,4 @@ var sys = status.system_info | ||
sys.cpu_model = cpuinfo[0].model | ||
sys.cpu_speed = cpuinfo.reduce(function (p, c) { return p + c.speed}, 0) / cpuinfo.length | ||
sys.cpu_speed = cpuinfo.reduce(sumSpeed, 0) / cpuinfo.length | ||
sys.hostname = os.hostname() | ||
@@ -35,0 +40,0 @@ status.system_info = sys |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11664
183
0