From d3334bf511d8b1570144f488cc14d08b539df979 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 11 Jan 2021 18:42:04 +0300 Subject: [PATCH] Fix bcache stats_total per-device readings (#323) Signed-off-by: Vitaliy Filippov Co-authored-by: Vitaliy Filippov --- bcache/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcache/get.go b/bcache/get.go index c4747ea53..0040b28ed 100644 --- a/bcache/get.go +++ b/bcache/get.go @@ -459,7 +459,7 @@ func GetStats(uuidPath string, priorityStats bool) (*Stats, error) { bds.FiveMin.CacheReadaheads = par.readValue("cache_readaheads") // dir //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")