Repository navigation
Fix wrong number of downloads when the tracker starts - #1509
Merged
josecelano merged 3 commits intoMay 8, 2025
Merged
josecelano merged 3 commits into
josecelano merged 3 commits into
Conversation
There are no performance problems in dev env, so it's better to enable as many features as possible to tests them while developing.
when the tracker starts. In the current implementation all torrents that have benn downloaded at least once have to be in memory initializting the counter. Otherwise, the global counter for downloads for all torrents only includes downloads for the torrents being currently tracker by the tracker.
When possible prefer this with "variable=value" format: ``` imported_torrents=2 ``` To this: ``` Imported torrents: 2 ``` It's easier to parse and less likely to be changed.
josecelano
force-pushed
the
1502-overhaul-stats-import-downlodas-counters-at-start
branch
from
May 8, 2025 16:08
60eaed2 to
632185b
Compare
Member
Author
|
ACK 632185b |
Member
Author
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1509 +/- ##
===========================================
- Coverage 83.90% 83.85% -0.06%
===========================================
Files 257 257
Lines 17936 17946 +10
Branches 17936 17946 +10
===========================================
- Hits 15050 15049 -1
- Misses 2610 2620 +10
- Partials 276 277 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5 tasks
Contributor
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: The start-up loading of download counts it added was turned off by #1511 the next day and later removed in #1542, so its fix no longer runs on the default branch. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to: #1502
As described here, when you start the tracker and stats persistence is enabled, you should see the last value for the number of downloads. Instead, you see something like this:
This PR fixes that problem.
It fixes the bug described in #1502. However, it does not fix other problems described in the issue (problem 3). I will open a new PR to fix problem 3.