qBittorrent
qBittorrent copied to clipboard
Last Activity counter getting reset when qbittorrent is restarted
Please provide the following information
qBittorrent version and Operating System
4.0.0 windows 10
What is the problem
When qbittorrent application is restarted the "Last Activity" counter also restarts (goes back to 0 minutes)
What is the expected behavior
Last Activity to know when the last activity of the torrent had been even after application exit (did work before 4.0.0)
Steps to reproduce
Add the "Last Activity" column
Have a torrent idle for a number of minutes.
Fully exit Qbittorrent (exit from tray)
Start qbittorrent and notice that the "Last Activity" counter is at 0 minutes for all torrents
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Nothing we can do. Those are per session data.
(did work before 4.0.0)
Are you sure?
Yeah totally worked. I always used it to use it to keep torrents alive until "Last Activity" was 30 days +
@Yoshi900 Those torrents in the images are seeding, right?
The calculation was changed in #7480. Before the change the code was incorrect, because it didn't took account of last upload/download activity time could contain an invalid value. Also "Last Activity" is defined as: the last time which upload data or download data occurred.
Yeah that would be fine if it was upload or download data occurred which would set the "Last Activity" time to 0 But if exit qbittorrent it resets the "Last Activity" time to 0 which before v4 it would keep the time on restart of the application.
Before application restart
after application restart (edit had to blur out categories)
As you can see from the second screenshot all the "Last Activity" is 2m ago (from the application restart) but only one of the torrents has transferred data which is up the top and is < 1m ago.
So it is not keeping the state as it was before the application exit.
Same here
Yeah I can confirm with Greenbench that the data from "Last Activity" is not correct. I am now getting incorrect data for new torrents which have traffic being transferred.
Highlighted are incorrect. the only one that seems to be correct is the non highlighted one however I cannot say this is 100% correct.
The column definitely seems broken. In previous versions (3.x) it always at least seemed to make logical sense to me... I could use the "Last Activity" column to sort currently active (uploading/downloading) torrents to the top. Now, it seems like actual activity doesn't really reset the counter at all. In fact, most of the torrents tend to to be within +/- an hour of each other (roughly when I started the program), and increases as time goes on.
So what ends up happening is, sorting this column maybe indicates the first time (that session) that the torrent connected to the tracker... any download or upload activity doesn't reset this, so using this column for anything meaningful is impossible.
Previously, the time WAS updated with new upload/download activity, and the time WAS saved between restarts. I definitely saw times ranging from now to >200 days ago... and they were all "Seeding" status.
Confirming also affected by this issue with Last Activity:
- resets on program start - in 3.x versions was retained between restarts
- shows incorrectly - eg. torrents with no traffic this session may appear as (time since program started) or infinity - eg active torrents (ie. receiving data) showing as hours since Last Activity
Chiming in to say I also noticed and am saddened by this change in v4.0 to reset the Last Activity column to zero between program starts. The 3.x way of doing things was much nicer - sorry to be a complainer but I use the Last Activity column sort exclusively!
Same problem on 4.0.4, I dislike the way it is now, it is more or less useless now :(
Was this a conscious choice by qbt's developers to make the "last activity" for each torrent the infinity loop every time we wake our machines up from sleep? If so...I can't fathom why. But if this was an intentional decision, I wish they would give us back the option to have the time count up normally.
Should be fixed in v4.1.0.
I had the added date getting reset sometimes, for unfinished downloads. Not sure why.
Don't think it is fixed on windows 7 qbt 4.1.0, most fields are empty, only few hours recent activity is shown. Can someone recheck?
@Fixer-007 4.1.0 has to start counting all torrents from the beginning because it wasn't saving them before.
Issue is not fixed for me, counter still starts from the time PC was started pretty much on some active torrents, most entries are empty though.
Not fixed for me, I'm on Win 7 x64.
There is still a similar problem with version 4.2.0. Some days ago
- some dates were reset to zero, I guess, so many of them has the same "Last activity",
- and some went to Infinity, even if I know that there was upload recently for that file. I haven't realized any problem earlier.
Still a problem on 4.3.0
Still an issue on Win11 4.4.3.1
I just noticed this issue is still present in v4.4.5 only showing activity for the last 12hrs from restart and infinity on everything else.
But I checked on the WebUI and it shows the activity correctly.
Hopefully that info will lead to a solution. At the very least it's a workaround for those who purge torrents after a period of inactivity.
@slydog3333 is this still present for 4.6.0 ?
@luzpaz So I updated to 4.6 last night and I think it might be working now. I'm at 22hrs and that data survived a restart.
A couple weird things though. It seems all previous data was wiped. Most of my torrents still show infinity as they haven't had activity yet but there's also a bunch that show 53yrs. Then on WebUI nothing shows infinity but most show 53yrs and a bunch show 1y 143 days and then also some random 30-87 days. So WebUI isn't matching up with the client for the no activity yet torrents but all the recent activity matches up.
So hopefully those are just weird glitches and overall probably should be working right going forward.
Thanks for the fix.