Browse Source

Merge pull request 'updated synctaskstatus' (#449) from tzwang/pcm-coordinator:master into master

pull/456/head
tzwang 8 months ago
parent
commit
7462d5f867
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      internal/storeLink/shuguangai.go

+ 18
- 0
internal/storeLink/shuguangai.go View File

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


Loading…
Cancel
Save