fix: collector run plugin
This commit is contained in:
parent
72a333fad9
commit
360aa94f66
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue