input(docker): Fixed io sectors/io_time recursive

* On engine-api sectors_recursive and io_time_recursive have no Op
This commit is contained in:
Sergio Jimenez 2016-04-03 19:40:12 +02:00 committed by Cameron Sparr
parent 708cbf937f
commit fd1f05c8e0
1 changed files with 2 additions and 4 deletions

View File

@ -395,14 +395,12 @@ func gatherBlockIOMetrics(
for _, metric := range blkioStats.IoTimeRecursive {
device := fmt.Sprintf("%d:%d", metric.Major, metric.Minor)
field := fmt.Sprintf("io_time_recursive_%s", strings.ToLower(metric.Op))
deviceStatMap[device][field] = metric.Value
deviceStatMap[device]["io_time_recursive"] = metric.Value
}
for _, metric := range blkioStats.SectorsRecursive {
device := fmt.Sprintf("%d:%d", metric.Major, metric.Minor)
field := fmt.Sprintf("sectors_recursive_%s", strings.ToLower(metric.Op))
deviceStatMap[device][field] = metric.Value
deviceStatMap[device]["sectors_recursive"] = metric.Value
}
for device, fields := range deviceStatMap {