Ticket #61 (closed enhancement: fixed)

Opened 2 years ago

Last modified 5 months ago

File statistics: Log the number of uploaded files in addition to "total file size uploaded"

Reported by: achim Owned by: ben
Priority: normal Milestone: 0.12
Component: bbackupd Version:
Keywords: Cc:

Description

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;

Change History

comment:1 Changed 5 months ago by chris

  • Status changed from new to closed
  • Resolution set to fixed

(In [2981]) Log the number of files uploaded and directories created, as requested by Achim, closes #61.

Note: See TracTickets for help on using tickets.