Skip to content

Commit

Permalink
Fix bcache stats_total per-device readings (#323)
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaliy Filippov <vitalif@yourcmc.ru>

Co-authored-by: Vitaliy Filippov <vitalif@yourcmc.ru>
  • Loading branch information
vitalif and vitalif committed Jan 11, 2021
1 parent b98b0d5 commit d3334bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcache/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func GetStats(uuidPath string, priorityStats bool) (*Stats, error) {
bds.FiveMin.CacheReadaheads = par.readValue("cache_readaheads")

// dir <uuidPath>/<bds.Name>/stats_total
par.setSubDir("stats_total")
par.setSubDir(bds.Name, "stats_total")
bds.Total.Bypassed = par.readValue("bypassed")
bds.Total.CacheBypassHits = par.readValue("cache_bypass_hits")
bds.Total.CacheBypassMisses = par.readValue("cache_bypass_misses")
Expand Down

0 comments on commit d3334bf

Please sign in to comment.