Commit 92242f8
committed
fix: [#1543] Remove peerless torrents when it's enabled in the tracker policy
There were not being removed when stats was enabled becuase the tracker
was counting downloads only from the active swarms.
Now the API exposed metric (global downldoads) is not taken from the
in-memory data structrure unless stats persistence is disabled. In that
case, the global total would be per session (since the tracker started),
and reset when the tracker restarts.1 parent 43c7179 commit 92242f8
1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 204 | + | |
211 | 205 | | |
212 | 206 | | |
213 | 207 | | |
| |||
0 commit comments