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

This commit is contained in:
tzwang 2024-12-18 18:09:04 +08:00
commit 8cfccde058
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,7 @@ func (o OpenI) GetResourceSpecs(ctx context.Context) (*collector.ResourceSpec, e
var wg sync.WaitGroup
var ch = make(chan *collector.Usage)
var once sync.Once
wg.Add(2)
wg.Add(3)
go func() {
defer wg.Done()
@ -347,6 +347,7 @@ func (o OpenI) GetResourceSpecs(ctx context.Context) (*collector.ResourceSpec, e
}()
go func() {
defer wg.Done()
rate := &collector.Usage{
Type: strings.ToUpper(RATE),
Total: &collector.UnitValue{Unit: PERHOUR, Value: 1},