update grpc-go & protobuf definition (#455)

This commit is contained in:
UUBulb authored and GitHub committed 2024-10-24 20:41:47 +08:00
1 parent d742b605a5
commit ce2b5ed549
7 files changed
+91 -136

No files matched your search

+2 -2
View File
@@ -66,8 +66,8 @@ func (u *Rule) Snapshot(cycleTransferStats *CycleTransferStats, server *Server,
switch u.Type {
case "cpu":
src = float64(server.State.CPU)
case "gpu":
src = float64(server.State.GPU)
case "gpu_max":
src = slices.Max(server.State.GPU)
case "memory":
src = percentage(server.State.MemUsed, server.Host.MemTotal)
case "swap":