Added a count for the number of files opened.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@576 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Duplicati.Library.Main
|
||||
private long m_deletedFolders;
|
||||
private long m_modifiedFiles;
|
||||
private long m_examinedFiles;
|
||||
private long m_openedFiles;
|
||||
private long m_addedFiles;
|
||||
private long m_sizeOfModifiedFiles;
|
||||
private long m_sizeOfAddedFiles;
|
||||
@@ -100,6 +101,12 @@ namespace Duplicati.Library.Main
|
||||
set { m_examinedFiles = value; }
|
||||
}
|
||||
|
||||
public long OpenedFiles
|
||||
{
|
||||
get { return m_openedFiles; }
|
||||
set { m_openedFiles = value; }
|
||||
}
|
||||
|
||||
public long SizeOfModifiedFiles
|
||||
{
|
||||
get { return m_sizeOfModifiedFiles; }
|
||||
@@ -157,6 +164,7 @@ namespace Duplicati.Library.Main
|
||||
sb.Append("AddedFiles : " + this.AddedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("AddedFolders : " + this.AddedFolders.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("ExaminedFiles : " + this.ExaminedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("OpenedFiles : " + this.OpenedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("SizeOfModified : " + this.SizeOfModifiedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("SizeOfAdded : " + this.SizeOfAddedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
sb.Append("SizeOfExamined : " + this.SizeOfExaminedFiles.ToString(System.Globalization.CultureInfo.InvariantCulture) + "\r\n");
|
||||
|
||||
@@ -333,6 +333,10 @@ namespace Duplicati.Library.Main.RSync
|
||||
/// </summary>
|
||||
private long m_examinedfiles;
|
||||
/// <summary>
|
||||
/// The number of files opened for matching
|
||||
/// </summary>
|
||||
private long m_filesopened;
|
||||
/// <summary>
|
||||
/// The combined size of the examined files
|
||||
/// </summary>
|
||||
private long m_examinedfilesize;
|
||||
@@ -960,6 +964,7 @@ namespace Duplicati.Library.Main.RSync
|
||||
|
||||
try
|
||||
{
|
||||
m_filesopened++;
|
||||
//We cannot have a "using" directive here because the fs may need to survive multiple rounds
|
||||
fs = m_snapshot.OpenRead(s);
|
||||
|
||||
@@ -1740,6 +1745,7 @@ namespace Duplicati.Library.Main.RSync
|
||||
bs.ModifiedFiles = m_diffedfiles;
|
||||
bs.AddedFiles = m_addedfiles;
|
||||
bs.ExaminedFiles = m_examinedfiles;
|
||||
bs.OpenedFiles = m_filesopened;
|
||||
bs.SizeOfModifiedFiles = m_diffedfilessize;
|
||||
bs.SizeOfAddedFiles = m_addedfilessize;
|
||||
bs.SizeOfExaminedFiles = m_examinedfilesize;
|
||||
|
||||
Reference in New Issue
Block a user