Print number of bytes added to the repo

This includes optional compression and crypto overhead.
This commit is contained in:
Alexander Neumann
2022-05-01 14:41:36 +02:00
committed by Michael Eischer
parent 99634c0936
commit 6c4ceaf1e7
6 changed files with 65 additions and 44 deletions

View File

@@ -86,11 +86,17 @@ func (s *FutureBlob) Known() bool {
return s.res.known
}
// Length returns the length of the blob.
// Length returns the raw length of the blob.
func (s *FutureBlob) Length() int {
return s.length
}
// SizeInRepo returns the number of bytes added to the repo (including
// compression and crypto overhead).
func (s *FutureBlob) SizeInRepo() int {
return s.res.size
}
type saveBlobJob struct {
restic.BlobType
buf *Buffer