mirror of
https://github.com/restic/restic.git
synced 2025-12-04 01:11:56 +00:00
Print number of bytes added to the repo
This includes optional compression and crypto overhead.
This commit is contained in:
committed by
Michael Eischer
parent
99634c0936
commit
6c4ceaf1e7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user