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