fix connect to dev dashboard

This commit is contained in:
naiba committed 2024-10-22 23:45:10 +08:00
1 parent f0c2a7a766
commit fbf099e437
5 files changed
+63 -60

No files matched your search

+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)
}