File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,16 @@ int iCount = GetTriggerArray ().GetSize (); // how many there are
349
349
350
350
351
351
LONGLONG iOldTimeTaken = 0 ;
352
+ long iOldMatchAttempts = 0 ;
353
+
352
354
353
355
// remember time taken to execute them
354
356
355
357
if (trigger_item->regexp )
358
+ {
356
359
iOldTimeTaken = trigger_item->regexp ->iTimeTaken ;
360
+ iOldMatchAttempts = trigger_item->regexp ->m_iMatchAttempts ;
361
+ }
357
362
358
363
delete trigger_item->regexp ; // get rid of earlier regular expression
359
364
trigger_item->regexp = NULL ;
@@ -384,7 +389,10 @@ int iCount = GetTriggerArray ().GetSize (); // how many there are
384
389
385
390
// add back execution time
386
391
if (trigger_item->regexp )
392
+ {
387
393
trigger_item->regexp ->iTimeTaken += iOldTimeTaken;
394
+ trigger_item->regexp ->m_iMatchAttempts += iOldMatchAttempts;
395
+ }
388
396
389
397
} // end of variable substitution
390
398
You can’t perform that action at this time.
0 commit comments