Skip to content

Commit

Permalink
Merge pull request #93 from sofat1989/master
Browse files Browse the repository at this point in the history
avoid adding io_serviced and io_service_bytes duplicately
  • Loading branch information
fuweid authored Jul 17, 2019
2 parents d596c78 + f627015 commit c4b9ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blkio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c4b9ac5

Please sign in to comment.