Browse Source

Fixing frequency of transfer progress logging

Source commit: eface8e0bd143e5b3108fb243dfb17f3a95d2dcc
Martin Prikryl 8 years ago
parent
commit
cc97b85ec7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/core/Terminal.cpp

+ 2 - 2
source/core/Terminal.cpp

@@ -1946,9 +1946,9 @@ void __fastcall TTerminal::DoProgress(TFileOperationProgressType & ProgressData)
   if (Configuration->ActualLogProtocol >= 1)
   {
     DWORD Now = GetTickCount();
-    if (FLastProgressLogged - Now >= 1000)
+    if (Now - FLastProgressLogged >= 1000)
     {
-      LogEvent(ProgressData.GetLogStr());
+      LogEvent(L"Transfer progress: " + ProgressData.GetLogStr(false));
       FLastProgressLogged = Now;
     }
   }