From f627015aeaf1f9621ee7eedc30ec9af74d63d250 Mon Sep 17 00:00:00 2001 From: fesu Date: Mon, 15 Jul 2019 20:22:05 +0800 Subject: [PATCH] avoid adding io_serviced and io_service_bytes duplicately Signed-off-by: Su Fei --- blkio.go | 1 + 1 file changed, 1 insertion(+) diff --git a/blkio.go b/blkio.go index 875fb554..7c498def 100644 --- a/blkio.go +++ b/blkio.go @@ -86,6 +86,7 @@ func (b *blkioController) Stat(path string, stats *Metrics) error { } // Try to read CFQ stats available on all CFQ enabled kernels first if _, err := os.Lstat(filepath.Join(b.Path(path), fmt.Sprintf("blkio.io_serviced_recursive"))); err == nil { + settings = []blkioStatSettings{} settings = append(settings, blkioStatSettings{ name: "sectors_recursive",