|
|
|
@@ -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) |
|
|
|
} |
|
|
|
|