Browse code

c4w: fix negative time

Török Edvin authored on 2011/02/10 22:05:44
Showing 1 changed files
... ...
@@ -1055,7 +1055,7 @@ cl_error_t prescan_cb(int fd, void *context) {
1055 1055
 	si.object = fdhdl;
1056 1056
 	si.objectId = (HANDLE)_get_osfhandle(fd);
1057 1057
 	perf2 = GetTickCount() - perf2;
1058
-	sctx->copy_times -= perf2;
1058
+	sctx->copy_times += perf2;
1059 1059
     } else { /* SCAN_PHASE_INITIAL */
1060 1060
 	si.object = INVALID_HANDLE_VALUE;
1061 1061
 	si.objectId = INVALID_HANDLE_VALUE;