mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Merge pull request #355 from areed/fs-perf-fix-timeout
Fix background IOPS blocking until timeout
This commit is contained in:
@@ -97,6 +97,7 @@ func collectHostFilesystemPerformance(hostCollector *troubleshootv1beta2.Filesys
|
||||
jobs := hostCollector.BackgroundReadIOPSJobs + hostCollector.BackgroundWriteIOPSJobs
|
||||
done := make(chan bool, jobs)
|
||||
defer func() {
|
||||
cancel()
|
||||
for i := 0; i < jobs; i++ {
|
||||
<-done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user