fix build on linux

This commit is contained in:
UlricQin 2022-04-25 15:37:45 +08:00
parent 4980450a97
commit 3a9299c305
4 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/categraf*
*.log

View File

@ -13,7 +13,6 @@ import (
"flashcat.cloud/categraf/config"
"flashcat.cloud/categraf/inputs"
"flashcat.cloud/categraf/types"
"github.com/toolkits/pkg/container/list"
)

View File

@ -12,7 +12,6 @@ import (
"flashcat.cloud/categraf/config"
"flashcat.cloud/categraf/inputs"
"flashcat.cloud/categraf/types"
"github.com/toolkits/pkg/container/list"
)

View File

@ -14,7 +14,6 @@ import (
"flashcat.cloud/categraf/config"
"flashcat.cloud/categraf/inputs"
"flashcat.cloud/categraf/pkg/osx"
"flashcat.cloud/categraf/types"
"github.com/toolkits/pkg/container/list"
)
@ -72,7 +71,7 @@ func (s *SysctlFS) Gather(slist *list.SafeList) {
log.Println("E! failed to gather file-nr:", err)
}
inputs.PushSamples(fields)
inputs.PushSamples(slist, fields)
}
func (s *SysctlFS) gatherOne(name string, fields map[string]interface{}) error {