fix: collector run plugin

This commit is contained in:
710leo 2020-03-26 12:31:49 +08:00
parent 72a333fad9
commit 360aa94f66
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func PluginRun(plugin *Plugin) {
timeout := plugin.Cycle*1000 - 500 //比运行周期少500毫秒
fpath := filepath.Join(plugin.FilePath)
fpath := filepath.Join(file.SelfDir(), plugin.FilePath)
if !file.IsExist(fpath) {
logger.Error("no such plugin:", fpath)