diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-11-17 09:49:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-11-17 09:49:39 +0000 |
commit | 79e0bbb3d773037371ff83563aba8ebdb20190e8 (patch) | |
tree | 35696c4aa2a33dd27e883d1a1bdc0c24f55aa9b6 /lib/backupclient/BackupStoreFileEncodeStream.h | |
parent | 55689249c942cd865c6da9ce27cb995cba4d1a7c (diff) |
Log the total number of bytes uploaded to the server for each file.
Diffstat (limited to 'lib/backupclient/BackupStoreFileEncodeStream.h')
-rw-r--r-- | lib/backupclient/BackupStoreFileEncodeStream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backupclient/BackupStoreFileEncodeStream.h b/lib/backupclient/BackupStoreFileEncodeStream.h index c5fa780a..023994af 100644 --- a/lib/backupclient/BackupStoreFileEncodeStream.h +++ b/lib/backupclient/BackupStoreFileEncodeStream.h @@ -85,6 +85,7 @@ public: virtual void Write(const void *pBuffer, int NBytes); virtual bool StreamDataLeft(); virtual bool StreamClosed(); + int64_t GetTotalBytesSent() { return mTotalBytesSent; } private: enum @@ -121,6 +122,7 @@ private: int32_t mPositionInCurrentBlock; // for reading out int32_t mBlockSize; // Basic block size of most of the blocks in the file int32_t mLastBlockSize; // the size (unencoded) of the last block in the file + int64_t mTotalBytesSent; // Buffers uint8_t *mpRawBuffer; // buffer for raw data BackupStoreFile::EncodingBuffer mEncodedBuffer; |