diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-12 20:54:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-12 20:54:13 +0300 |
| commit | 09ad1901e93158ccbbfd64033849e1835fb3ecb8 (patch) | |
| tree | 8bc13caeefd0e231531265ae2973121ed9a16a0a /Taskfile.yml | |
| parent | c9ae38674e91eeddf9f26fc64d4ddd3a3a3fbbfe (diff) | |
improve stats calculation to exclude pause periods
- Modify newStats() and gatherPostedStats() to accept config parameter
- Add calculatePausedDays() helper function for pause period overlap calculation
- Update postsPerDay and totalPostsPerDay calculations to exclude paused days
- Prevent artificially low throughput during pause periods
- Add comprehensive unit tests for pause-aware stats functionality
- Maintain backward compatibility when no pause is configured
Fixes issue where Gos would post aggressively after vacation periods
due to including pause days in throughput calculations.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'Taskfile.yml')
0 files changed, 0 insertions, 0 deletions
