Skip to content

Commit f627015

Browse files
author
fesu
committed
avoid adding io_serviced and io_service_bytes duplicately
Signed-off-by: Su Fei <[email protected]>
1 parent d596c78 commit f627015

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

blkio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (b *blkioController) Stat(path string, stats *Metrics) error {
8686
}
8787
// Try to read CFQ stats available on all CFQ enabled kernels first
8888
if _, err := os.Lstat(filepath.Join(b.Path(path), fmt.Sprintf("blkio.io_serviced_recursive"))); err == nil {
89+
settings = []blkioStatSettings{}
8990
settings = append(settings,
9091
blkioStatSettings{
9192
name: "sectors_recursive",

0 commit comments

Comments
 (0)