mirror of
https://github.com/restic/restic.git
synced 2026-10-22 00:48:12 +00:00
Add progress report for loading blobs
This commit is contained in:
1 parent
58cded6b75
commit
a59b0ec1f6
5 files changed
+76
-20
No files matched your search
+4
-2
@@ -173,6 +173,8 @@ func (s *Stat) Add(other Stat) {
|
||||
s.Bytes += other.Bytes
|
||||
s.Dirs += other.Dirs
|
||||
s.Files += other.Files
|
||||
s.Trees += other.Trees
|
||||
s.Blobs += other.Blobs
|
||||
}
|
||||
|
||||
func (s Stat) String() string {
|
||||
@@ -192,6 +194,6 @@ func (s Stat) String() string {
|
||||
str = fmt.Sprintf("%dB", s.Bytes)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Stat(%d files, %d dirs, %v)",
|
||||
s.Files, s.Dirs, str)
|
||||
return fmt.Sprintf("Stat(%d files, %d dirs, %v trees, %v blobs, %v)",
|
||||
s.Files, s.Dirs, s.Trees, s.Blobs, str)
|
||||
}
|
||||
Reference in new issue
Block a user