Changeset 790 for trunk/dll/comp.c
- Timestamp:
- Aug 20, 2007, 6:54:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r783 r790 33 33 13 Aug 07 SHL Sync code with other FilesToGet usage 34 34 13 Aug 07 SHL Move #pragma alloc_text to end for OpenWatcom compat 35 20 Aug 07 SHL Correct remaining pcil/pcir typos (we hope) 36 20 Aug 07 SHL Revert to DosSleep(0) 37 20 Aug 07 SHL Use GetMSecTimer for timing 35 38 36 39 ***********************************************************************/ … … 841 844 HMQ hmq; 842 845 BOOL notified = FALSE; 846 847 ULONG lastMSec = GetMSecTimer(); 848 ULONG ul; 843 849 844 850 HWND hwndLeft, hwndRight; … … 1194 1200 pcir->crtime.minutes = filesr[r]->crtime.minutes; 1195 1201 pcir->crtime.hours = filesr[r]->crtime.hours; 1196 if (~pcil->rc.flRecordAttr & CRA_FILTERED && 1202 // Bypass check if already filtered on left side 1203 if (~pcir->rc.flRecordAttr & CRA_FILTERED && 1197 1204 *cmp->dcd.mask.szMask) { 1198 1205 if (!Filter((PMINIRECORDCORE)pcir, (PVOID)&cmp->dcd.mask)) { … … 1302 1309 pcil->pszSubject = NullStr; 1303 1310 if (!pcir->pszSubject) 1304 pci l->pszSubject = NullStr;1311 pcir->pszSubject = NullStr; 1305 1312 1306 1313 if (!pcil->pszDispAttr) 1307 1314 pcil->pszDispAttr = NullStr; 1308 1315 if (!pcir->pszDispAttr) 1309 pci l->pszDispAttr = NullStr;1310 1311 // fixme to be time based - every 2 sec should be OK 1316 pcir->pszDispAttr = NullStr; 1317 1318 #if 0 // 20 Aug 07 SHL fixme to be gone 1312 1319 if (!(cntr % 500)) 1313 1320 DosSleep(1); 1314 1321 else if (!(cntr % 50)) 1315 DosSleep(1); 1316 1322 DosSleep(0); 1317 1323 cntr++; 1324 #else 1325 if ((cntr++ % 500) == 0) { 1326 ul = GetMSecTimer(); 1327 if (ul - lastMSec >= 1000) { 1328 lastMSec = ul; 1329 DosSleep(1); 1330 } 1331 } 1332 #endif 1318 1333 1319 1334 pcil = (PCNRITEM) pcil->rc.preccNextRecord; … … 2440 2455 TileChildren(cmp->hwndParent, TRUE); 2441 2456 } 2442 DosSleep(32); 2457 DosSleep(32); // 05 Aug 07 GKY 64 2443 2458 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(COMP_COLLECT, 0), MPVOID); 2444 2459 break;
Note:
See TracChangeset
for help on using the changeset viewer.