mirror of
https://codeberg.org/scip/io-exporter.git
synced 2025-12-17 12:31:03 +01:00
return wg pointer
This commit is contained in:
@@ -33,7 +33,7 @@ func NewExporter(conf *Config, alloc *Alloc, metrics *Metrics) *Exporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// starts the primary go-routine, which will run the io checks for ever
|
// starts the primary go-routine, which will run the io checks for ever
|
||||||
func (exp *Exporter) RunIOchecks() sync.WaitGroup {
|
func (exp *Exporter) RunIOchecks() *sync.WaitGroup {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ func (exp *Exporter) RunIOchecks() sync.WaitGroup {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return wg
|
return &wg
|
||||||
}
|
}
|
||||||
|
|
||||||
// call an io measurement and collect time needed
|
// call an io measurement and collect time needed
|
||||||
|
|||||||
Reference in New Issue
Block a user