fix connect to dev dashboard

This commit is contained in:
naiba
2024-10-22 23:45:10 +08:00
parent f0c2a7a766
commit fbf099e437
5 changed files with 63 additions and 60 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ import (
)
// 修改Agent要监控的网卡与硬盘分区
func editAgentConfig() {
func editAgentConfig(configPath string) {
agentConfig.Read(configPath)
nc, err := psnet.IOCounters(true)
if err != nil {
panic(err)
+1 -1
View File
@@ -133,7 +133,7 @@ func main() {
}
if isEditConfig {
editAgentConfig()
editAgentConfig(configPath)
os.Exit(0)
}