feat: #4 在上报的字段里添加当前agent版本

This commit is contained in:
Akizon77
2025-05-06 21:12:34 +08:00
parent f593015598
commit fe0098bf49

View File

@@ -191,6 +191,7 @@ func uploadBasicInfo(endpoint string, token string) error {
"swap_total": monitoring.Swap().Total,
"disk_total": monitoring.Disk().Total,
"gpu_name": "Unknown",
"version": CurrentVersion,
}
endpoint = strings.TrimSuffix(endpoint, "/") + "/api/clients/uploadBasicInfo?token=" + token