Comparing version 1.9.16 to 1.10.1
@@ -51,3 +51,3 @@ 'use strict'; | ||
var patt = /^(node|access)-(\d{8})\.log$/; | ||
var patt = /^(node|access|tracing)-(\d{8})\.log$/; | ||
@@ -54,0 +54,0 @@ var cleanOldLogs = function (callback) { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var MAX_LINES = 250; // 最多200行数据 | ||
var MAX_LINES = 250; // 最多 250 行数据 | ||
var buffered = []; | ||
@@ -12,0 +12,0 @@ exports.logdir = ''; // 日志路径 |
@@ -488,3 +488,3 @@ 'use strict'; | ||
exports.init = function (callback) { | ||
exports.init = function (config) { | ||
lastTotal = 0; | ||
@@ -495,3 +495,7 @@ lastIdle = 0; | ||
cpuNumber = os.cpus().length; | ||
isDocker = isInDocker(); | ||
if (config && config.hasOwnProperty('isDocker')) { | ||
isDocker = !!config.isDocker; | ||
} else { | ||
isDocker = isInDocker(); | ||
} | ||
@@ -498,0 +502,0 @@ exports.isDocker = isDocker; |
{ | ||
"name": "agentx", | ||
"version": "1.9.16", | ||
"version": "1.10.1", | ||
"description": "agentx is powered by alinode", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
62503
19
2039
15