[Box Backup-commit] #61: File statistics: Log the number of uploaded files in addition to "total file size uploaded"
Box Backup
trac
Wed Sep 16 14:16:59 BST 2009
#61: File statistics: Log the number of uploaded files in addition to "total
file size uploaded"
-------------------------+--------------------------------------------------
Reporter: achim | Owner: ben
Type: enhancement | Status: new
Priority: normal | Milestone: 0.12
Component: bbackupd | Version:
Keywords: |
-------------------------+--------------------------------------------------
Would it be possible to expand "File statistics" to include the number of
uploaded files in addition to "total file size uploaded"? Empty folders
and files are not reflected by "total file size", but would show up with
"total number of files".
Traces from the source:
************** check lib/backupclient/BackupStoreFile.cpp
BackupStoreFileStats variable msStats for number of files uploaded:
Used in
BOX_NOTICE("File statistics: total file size uploaded "
<< BackupStoreFile::msStats.mBytesInEncodedFiles
<< ", bytes already on server "
<< BackupStoreFile::msStats.mBytesAlreadyOnServer
<< ", encoded size "
<< BackupStoreFile::msStats.mTotalFileStreamSize);
DECLARED IN
BackupStoreFile.h
23 typedef struct
24 {
25 int64_t mBytesInEncodedFiles;
26 int64_t mBytesAlreadyOnServer;
27 int64_t mTotalFileStreamSize;
28 } BackupStoreFileStats;
USED AS msStats in BackupStoreFileEncodeStream.cpp
// Update stats
BackupStoreFile::msStats.mBytesInEncodedFiles += fileSize;
// Add encoded size to stats
BackupStoreFile::msStats.mTotalFileStreamSize += (NBytes - bytesToRead);
// Update stats
BackupStoreFile::msStats.mBytesAlreadyOnServer +=
(*mpRecipe)[mInstructionNumber].mpStartBlock[b].mSize;
--
Ticket URL: <https://www.boxbackup.org/trac/ticket/61>
Box Backup <http://www.boxbackup.org/>
An open source, completely automatic on-line backup system for UNIX.
More information about the Boxbackup-commit
mailing list