mirror of
https://github.com/restic/restic.git
synced 2025-12-14 16:11:53 +00:00
diff: Fix wrong bytes reported in diff stats (#2469)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user