浏览代码

Fixing frequency of transfer progress logging

Source commit: eface8e0bd143e5b3108fb243dfb17f3a95d2dcc
Martin Prikryl 8 年之前
父节点
当前提交
cc97b85ec7
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;
     }
   }