Comments (1)
I looked in the source code to see if theres something that tracks uploads/downloads, and it seems that only statistics being tracked in-between sessions are all-time upload and download (code attached). For a monthly limit (or daily/weekly/etc) to work, more specific statistics need to be added (which can also be a feature on its own). Im new to this though, so would like it if someone can give some feedback. Im going to try to see if I can add support for more specific statistics first.
This is in base/bittorrent/sessionImpl.cpp:
void SessionImpl::saveStatistics() const
{
if (!m_isStatisticsDirty)
return;
const QVariantHash stats {
{u"AlltimeDL"_s, m_status.allTimeDownload},
{u"AlltimeUL"_s, m_status.allTimeUpload}};
std::unique_ptr<QSettings> settings = Profile::instance()->applicationSettings(u"qBittorrent-data"_s);
settings->setValue(u"Stats/AllStats"_s, stats);
m_statisticsLastUpdateTimer.start();
m_isStatisticsDirty = false;
}
void SessionImpl::loadStatistics()
{
const std::unique_ptr<QSettings> settings = Profile::instance()->applicationSettings(u"qBittorrent-data"_s);
const QVariantHash value = settings->value(u"Stats/AllStats"_s).toHash();
m_previouslyDownloaded = value[u"AlltimeDL"_s].toLongLong();
m_previouslyUploaded = value[u"AlltimeUL"_s].toLongLong();
}
from qbittorrent.
Related Issues (20)
- qBittorrent has crashed HOT 2
- Crash during close - running for a few days then pausing all activity and closing (v4.6.6)
- Search plugins dont work HOT 5
- Torrent share limits based on a tag or category HOT 3
- [Bug] qBittorrent stops Downloading the moment i enable DNS over HTTPS (issue was due to 3rd party firewall) HOT 2
- Failed to report the latest IPv6 address to Trackers after ip changes. HOT 3
- Not all strings are translated to Russian on 5.0 RC 1 HOT 1
- Some torrents in search do not open at all HOT 1
- Setting "Start Torrent" to "yes" doesn't work HOT 2
- Unable to remove tracker using the API HOT 2
- enabling "do not count slow torrents in these limits" will start downloading every torrent in queue HOT 9
- Configurable save statistics interval HOT 9
- After internet connectivity is broken, qbt binded network interface stopped, qbt fails to resume connectivity HOT 2
- Web seeds still use ipv6, even when set to “all ipv4 addresses” HOT 3
- Changing save path and enabling "use another path for incomplete torrent" at the same time causes the files to be moved twice, even if no moving is needed at all. HOT 1
- Include "Add new torrent" options directly in the command line HOT 4
- Occasional UDP packets being sent with destination port 0 HOT 3
- File preallocation does not work after its priority is changed from "do not download"
- Support for importing IP filter rules via the internet and updating them regularly. HOT 1
- Deleting category should A) confirmation to de-categorize torrents B) prompt if new category should be used for its torrents? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qbittorrent.