Changeset 1880 for trunk/dll/grep.c
- Timestamp:
- Oct 12, 2015, 8:26:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r1780 r1880 323 323 WinCancelShutdown(ghmq, TRUE); 324 324 IncrThreadUsage(); 325 // DosSleep(100); //05 Aug 07 GKY 128 // 07 Feb 08 SHL326 325 // hwndStatus does not exist for applet 327 326 WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile, … … 788 787 pci, grep->dir[x], grep->insertffb[x], FALSE, dcd); 789 788 pci = (PCNRITEM) pci->rc.preccNextRecord; 790 //SleepIfNeeded(pitdSleep, 1);791 789 if (pci == NULL && ulRecsToInsert) { 792 790 memset(&ri, 0, sizeof(RECORDINSERT)); … … 808 806 SleepIfNeeded(pitdSleep, 1); 809 807 }//for 810 // if (grep->toinsert == FilesToGet) // 07 Feb 08 SHL811 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL812 808 freegreplist(grep); 813 809 PostMsg(grep->hwndFiles, UM_RESCAN, MPVOID, MPVOID); … … 1056 1052 } // while 1057 1053 Free_FEAList(head); 1058 // DosSleep(1); // 07 Feb 08 SHL1059 1054 } 1060 1055 } … … 1094 1089 Fortify_LeaveScope(); 1095 1090 # endif 1096 // DosSleep(1); // 07 Feb 08 SHL1097 1091 } 1098 1092 } // if … … 1203 1197 else 1204 1198 break; 1205 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1206 1199 } 1207 1200 fclose(fp); 1208 // DosSleep(1); // 07 Feb 08 SHL1209 1201 } 1210 1202 free(buffer); … … 1373 1365 ULONG x; 1374 1366 ULONG y; 1375 // ULONG cntr = 1000; // 09 Feb 08 SHL 1376 1377 // if (grep->CRCdupes) // 09 Feb 08 SHL 1378 // cntr = 100; // 09 Feb 08 SHL 1367 1379 1368 x = 0; 1380 1369 for (i = grep->dupehead; i; i = i->next) … … 1386 1375 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1387 1376 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT)); 1388 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1389 1377 grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__); 1390 1378 if (!grep->nosizedupes) … … 1404 1392 InitITimer(pitdSleep, 0); // Reset rate estimator 1405 1393 SleepIfNeeded(pitdSleep, 1); 1406 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1407 1408 1394 qsort(grep->dupenames, 1409 1395 x, … … 1411 1397 grep->ignoreextdupes ? comparenamesqe : comparenamesq); 1412 1398 SleepIfNeeded(pitdSleep, 1); 1413 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1414 1399 if (!grep->nosizedupes) { 1415 1400 qsort(grep->dupesizes, x, sizeof(DUPES *), comparesizesq); 1416 1401 SleepIfNeeded(pitdSleep, 1); 1417 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1418 1402 } 1419 1403 … … 1597 1581 if (!(i->flags & GF_SKIPME)) { 1598 1582 if (IsITimerExpired(pitdReport)) { 1599 // if (!(y % cntr)) { } 1600 CHAR s[44]; 1583 CHAR s[44]; 1584 1601 1585 sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, grep->numfiles); 1602 1586 if (!hwndStatus) … … 1604 1588 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1605 1589 WinSetWindowText(hwndStatus, s); 1606 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1607 1590 } 1608 1591 y++; … … 1667 1650 } 1668 1651 } 1669 // else if (!(x % 100)) // 07 Feb 08 SHL1670 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL1671 1652 } 1672 1653 c = c->next;
Note:
See TracChangeset
for help on using the changeset viewer.