mirror of
https://github.com/kopia/kopia.git
synced 2026-05-19 04:04:56 -04:00
snapshot: removed content stats from snapshot.Stats, which are confusing and incorrect if snapshots are done in parallel
This commit is contained in:
committed by
Julio López
parent
d862bc2d44
commit
3ebef0ada9
@@ -780,7 +780,6 @@ func (u *Uploader) Upload(
|
||||
s.IncompleteReason = u.cancelReason()
|
||||
s.EndTime = time.Now()
|
||||
s.Stats = u.stats
|
||||
s.Stats.Content = u.repo.Content.Stats()
|
||||
|
||||
return s, nil
|
||||
}
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
|
||||
import (
|
||||
"github.com/kopia/kopia/fs"
|
||||
"github.com/kopia/kopia/repo/content"
|
||||
)
|
||||
|
||||
// Stats keeps track of snapshot generation statistics.
|
||||
type Stats struct {
|
||||
Content content.Stats `json:"content,omitempty"`
|
||||
|
||||
TotalDirectoryCount int `json:"dirCount"`
|
||||
TotalFileCount int `json:"fileCount"`
|
||||
TotalFileSize int64 `json:"totalSize"`
|
||||
|
||||
Reference in New Issue
Block a user