diff --git a/assets/auto-imports.d.ts b/assets/auto-imports.d.ts index 72f3b716..c98d8087 100644 --- a/assets/auto-imports.d.ts +++ b/assets/auto-imports.d.ts @@ -45,7 +45,6 @@ declare global { const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] - const definePage: typeof import('unplugin-vue-router/runtime')['definePage'] const defineStore: typeof import('pinia')['defineStore'] const eagerComputed: typeof import('@vueuse/core')['eagerComputed'] const effectScope: typeof import('vue')['effectScope'] diff --git a/internal/agent/pb/types.pb.go b/internal/agent/pb/types.pb.go index 8a8e577f..1f9abc8b 100644 --- a/internal/agent/pb/types.pb.go +++ b/internal/agent/pb/types.pb.go @@ -518,7 +518,7 @@ type Host struct { OsVersion string `protobuf:"bytes,7,opt,name=osVersion,proto3" json:"osVersion,omitempty"` OsType string `protobuf:"bytes,8,opt,name=osType,proto3" json:"osType,omitempty"` CpuCores uint32 `protobuf:"varint,9,opt,name=cpuCores,proto3" json:"cpuCores,omitempty"` - Memory uint32 `protobuf:"varint,10,opt,name=memory,proto3" json:"memory,omitempty"` + Memory uint64 `protobuf:"varint,10,opt,name=memory,proto3" json:"memory,omitempty"` } func (x *Host) Reset() { @@ -616,7 +616,7 @@ func (x *Host) GetCpuCores() uint32 { return 0 } -func (x *Host) GetMemory() uint32 { +func (x *Host) GetMemory() uint64 { if x != nil { return x.Memory } @@ -716,7 +716,7 @@ var file_types_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, - 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x1a, + 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, diff --git a/internal/agent/server.go b/internal/agent/server.go index 2a11aea0..c6716804 100644 --- a/internal/agent/server.go +++ b/internal/agent/server.go @@ -248,7 +248,7 @@ func (s *server) HostInfo(ctx context.Context, in *pb.HostInfoRequest) (*pb.Host Id: host.ID, Name: host.Name, CpuCores: uint32(host.NCPU), - Memory: uint32(host.MemTotal), + Memory: uint64(host.MemTotal), }, }, nil } diff --git a/protos/types.proto b/protos/types.proto index c1ac6e60..e94a2b6c 100644 --- a/protos/types.proto +++ b/protos/types.proto @@ -61,5 +61,5 @@ message Host { string osVersion = 7; string osType = 8; uint32 cpuCores = 9; - uint32 memory = 10; + uint64 memory = 10; }