(mem uint64, cpu int64)
| 54 | } |
| 55 | |
| 56 | func (info *RuntimeInfo) SetResource(mem uint64, cpu int64) { |
| 57 | logs.V(3).Infof("update runtime %s memory size %d to %d; cpu size %d to %d", info.RuntimeID, |
| 58 | info.Resource.Memory, mem, info.Resource.MilliCPUs, cpu) |
| 59 | info.Resource.Memory = int64(mem) |
| 60 | info.Resource.MilliCPUs = cpu |
| 61 | } |
| 62 | |
| 63 | func (info *RuntimeInfo) SetMemorySize(mem uint64) { |
| 64 | logs.V(3).Infof("update runtime %s memory size %d to %d", info.RuntimeID, info.MemorySize, mem) |
no test coverage detected