diff: Fix wrong bytes reported in diff stats (#2469)

This commit is contained in:
Leo R. Lundgren
2019-11-22 17:00:23 +01:00
parent 30519f01ff
commit 77ef92b95c
2 changed files with 7 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ type Comparer struct {
type DiffStat struct {
Files, Dirs, Others int
DataBlobs, TreeBlobs int
Bytes int
Bytes uint64
}
// Add adds stats information for node to s.
@@ -141,7 +141,7 @@ func updateBlobs(repo restic.Repository, blobs restic.BlobSet, stats *DiffStat)
continue
}
stats.Bytes += int(size)
stats.Bytes += uint64(size)
}
}