OSDN Git Service

Fix the unit of stopwatch.elapsed()
authorsdottaka <none@none>
Mon, 28 Jan 2013 01:43:15 +0000 (17:43 -0800)
committersdottaka <none@none>
Mon, 28 Jan 2013 01:43:15 +0000 (17:43 -0800)
Src/DirScan.cpp

index e2bda3b..f3b4580 100644 (file)
@@ -607,7 +607,7 @@ static int CompareItems(NotificationQueue& queue, DiffFuncStruct *myStruct, UInt
                if (pCtxt->ShouldAbort())
                        break;
 
-               if (stopwatch.elapsed() > 2000)
+               if (stopwatch.elapsed() > 2000000)
                {
                        int event = CDiffThread::EVENT_COMPARE_PROGRESSED;
                        myStruct->m_listeners.notify(myStruct, event);