mirror of
https://github.com/restic/restic.git
synced 2026-11-10 00:38:40 +00:00
Correct #2537 (cmd_stats file counting issue)
This commit is contained in:
1 parent
8bf6a3af97
commit
23055aaadf
2 files changed
+11
-1
No files matched your search
@@ -247,8 +247,13 @@ func statsWalkTree(repo restic.Repository, stats *statsContainer) walker.WalkFun
|
||||
// as this is a file in the snapshot, we can simply count its
|
||||
// size without worrying about uniqueness, since duplicate files
|
||||
// will still be restored
|
||||
stats.TotalSize += node.Size
|
||||
stats.TotalFileCount++
|
||||
|
||||
// TODO - Issue #2531 Handle hard links by identifying duplicate inodes.
|
||||
// (Duplicates should appear in the file count, but not the size count)
|
||||
stats.TotalSize += node.Size
|
||||
|
||||
return false, nil
|
||||
}
|
||||
|
||||
return true, nil
|
||||
|
||||
Reference in new issue
Block a user