* Mark a batch as completed (increments cumulative counter).
(filesInBatch: number)
| 480 | * Mark a batch as completed (increments cumulative counter). |
| 481 | */ |
| 482 | batchCompleted(filesInBatch: number): void { |
| 483 | this.batchState.completed++; |
| 484 | this.batchState.filesAnalyzed += filesInBatch; |
| 485 | this.postMessage({ |
| 486 | command: 'batchProgress', |
| 487 | completed: this.batchState.completed, |
| 488 | total: this.batchState.total, |
| 489 | filesAnalyzed: this.batchState.filesAnalyzed, |
| 490 | elapsed: Date.now() - this.batchState.startTime |
| 491 | }); |
| 492 | } |
| 493 | |
| 494 | /** |
| 495 | * Get current batch stats for completion message. |