diff --git a/Duplicati/Library/Main/BackupStatistics.cs b/Duplicati/Library/Main/BackupStatistics.cs index e8fb199b6..76b4102f8 100644 --- a/Duplicati/Library/Main/BackupStatistics.cs +++ b/Duplicati/Library/Main/BackupStatistics.cs @@ -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"); diff --git a/Duplicati/Library/Main/RSyncDir.cs b/Duplicati/Library/Main/RSyncDir.cs index d8bc3df6c..0882994b9 100644 --- a/Duplicati/Library/Main/RSyncDir.cs +++ b/Duplicati/Library/Main/RSyncDir.cs @@ -333,6 +333,10 @@ namespace Duplicati.Library.Main.RSync /// private long m_examinedfiles; /// + /// The number of files opened for matching + /// + private long m_filesopened; + /// /// The combined size of the examined files /// 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;