add machine_id
This commit is contained in:
@@ -91,11 +91,11 @@ func sendHeartbeat(client *rpc.Client) (bool, error) {
|
||||
// 1. 获取主机信息
|
||||
hostInfoData := services.GetAllInfo()
|
||||
hostInfo := models.HostInfo{
|
||||
SystemInfo: hostInfoData.SystemInfo,
|
||||
CPUInfo: hostInfoData.CPUInfo,
|
||||
DiskInfo: hostInfoData.DiskInfo,
|
||||
MemoryInfo: hostInfoData.MemoryInfo,
|
||||
NetInfo: hostInfoData.NetInfo,
|
||||
MotherboardInfo: hostInfoData.MotherboardInfo,
|
||||
}
|
||||
|
||||
// 2. 获取应用名称
|
||||
|
||||
Reference in New Issue
Block a user