From b63ec454b2e9fd5a41aaae091f1cb2fca67a227e Mon Sep 17 00:00:00 2001 From: "kenneth@hexad.dk" Date: Sat, 17 Mar 2012 21:28:33 +0000 Subject: [PATCH] Merged r1166 into 1.3.1 branch git-svn-id: https://duplicati.googlecode.com/svn/branches/1.3.1@1167 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/Library/Main/BackendWrapper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Main/BackendWrapper.cs b/Duplicati/Library/Main/BackendWrapper.cs index 3e338507c..a95187eb1 100644 --- a/Duplicati/Library/Main/BackendWrapper.cs +++ b/Duplicati/Library/Main/BackendWrapper.cs @@ -1288,7 +1288,8 @@ namespace Duplicati.Library.Main string remotename = remote.Filename; m_statusmessage = string.Format(Strings.BackendWrapper.StatusMessageUploading, remotename, Utility.Utility.FormatSizeString(new System.IO.FileInfo(filename).Length)); Duplicati.Library.Interface.IFileEntry log_fe = new Duplicati.Library.Interface.FileEntry(remote.Filename, remote.Filesize, DateTime.Now, DateTime.Now); - + long sourceFileSize = new System.IO.FileInfo(filename).Length; + try { int retries = m_options.NumberOfRetries; @@ -1408,7 +1409,7 @@ namespace Duplicati.Library.Main if (!success) throw new Exception(string.Format(Strings.BackendWrapper.FileUploadError2, remotename, lastEx == null ? "" : lastEx.Message), lastEx); - m_statistics.AddBytesUploaded(new System.IO.FileInfo(filename).Length); + m_statistics.AddBytesUploaded(sourceFileSize); } finally {