Browse Source

update openi

pull/371/head
tzwang 11 months ago
parent
commit
7d33ee2c72
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      internal/storeLink/openi.go

+ 2
- 1
internal/storeLink/openi.go 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},


Loading…
Cancel
Save