Add progress report for loading blobs

This commit is contained in:
Alexander Neumann 2015-02-21 15:32:48 +01:00
parent 58cded6b75
commit a59b0ec1f6
5 changed files with 76 additions and 20 deletions

View file

@ -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)
}