From 7b9ab5e2928f562483c2817e2f497f15d4e33e99 Mon Sep 17 00:00:00 2001 From: chunqizhi <1558763837@qq.com> Date: Mon, 6 Jul 2020 17:49:05 +0800 Subject: [PATCH] Fix an error in addCachePathsForSectorSize func --- faults.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/faults.go b/faults.go index 05347f26c..8580c0d93 100644 --- a/faults.go +++ b/faults.go @@ -98,11 +98,13 @@ func addCachePathsForSectorSize(chk map[string]int64, cacheDir string, ssize abi case 512 << 20: chk[filepath.Join(cacheDir, "sc-02-data-tree-r-last.dat")] = 0 case 32 << 30: - fallthrough - case 64 << 30: for i := 0; i < 8; i++ { chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0 } + case 64 << 30: + for i := 0; i < 16; i++ { + chk[filepath.Join(cacheDir, fmt.Sprintf("sc-02-data-tree-r-last-%d.dat", i))] = 0 + } default: log.Warnf("not checking cache files of %s sectors for faults", ssize) }