Skip to content

Commit 01afadd

Browse files
authored
fix: uses correct int size for memory (#3115)
1 parent 987c0e6 commit 01afadd

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

assets/auto-imports.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ declare global {
4545
const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']
4646
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
4747
const defineComponent: typeof import('vue')['defineComponent']
48-
const definePage: typeof import('unplugin-vue-router/runtime')['definePage']
4948
const defineStore: typeof import('pinia')['defineStore']
5049
const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
5150
const effectScope: typeof import('vue')['effectScope']

internal/agent/pb/types.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/agent/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (s *server) HostInfo(ctx context.Context, in *pb.HostInfoRequest) (*pb.Host
248248
Id: host.ID,
249249
Name: host.Name,
250250
CpuCores: uint32(host.NCPU),
251-
Memory: uint32(host.MemTotal),
251+
Memory: uint64(host.MemTotal),
252252
},
253253
}, nil
254254
}

protos/types.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ message Host {
6161
string osVersion = 7;
6262
string osType = 8;
6363
uint32 cpuCores = 9;
64-
uint32 memory = 10;
64+
uint64 memory = 10;
6565
}

0 commit comments

Comments
 (0)