diff --git a/internal/storeLink/shuguangai.go b/internal/storeLink/shuguangai.go index 69bf00e0..9a688734 100644 --- a/internal/storeLink/shuguangai.go +++ b/internal/storeLink/shuguangai.go @@ -1396,6 +1396,24 @@ func (s *ShuguangAi) GetResourceSpecs(ctx context.Context) (*collector.ResourceS } } + // temporarily set memory usage + //var dcuNum int + // + //mem := &collector.Usage{ + // Type: strings.ToUpper(MEMORY), + // Name: strings.ToUpper(RAM), + // Total: &collector.UnitValue{Unit: GIGABYTE, Value: 2 * RAM_SIZE_1G}, + // Available: &collector.UnitValue{Unit: GIGABYTE, Value: 2 * RAM_SIZE_1G}, + //} + //vmem := &collector.Usage{ + // Type: strings.ToUpper(MEMORY), + // Name: strings.ToUpper(VRAM), + // Total: &collector.UnitValue{Unit: GIGABYTE, Value: 2 * RAM_SIZE_1G}, + // Available: &collector.UnitValue{Unit: GIGABYTE, Value: 2 * RAM_SIZE_1G}, + //} + //bres = append(bres, mem) + //bres = append(bres, vmem) + for v := range sch { bres = append(bres, v) }