diff options
author | iczero <iczero4@gmail.com> | 2021-07-30 23:23:49 -0700 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-10-03 14:19:17 +0100 |
commit | 89189adb24321c3db6bfa816ec557d7d8367ba24 (patch) | |
tree | ceae9057d42f548c039594c363d497a908aef093 | |
parent | a5a7da4a1a52a351e7c800be896d0f27eac72ec2 (diff) | |
download | deluge-89189adb24321c3db6bfa816ec557d7d8367ba24.tar.gz deluge-89189adb24321c3db6bfa816ec557d7d8367ba24.tar.bz2 deluge-89189adb24321c3db6bfa816ec557d7d8367ba24.zip |
[Core] Stop using removed disk.num_blocks_cache_hits stat
Removed in libtorrent v2.0.0:
https://github.com/arvidn/libtorrent/commit/569d47c3914d1f4a8672b92166ee461b4ae33aef
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | deluge/core/core.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index 66826bbde..70988729d 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ deluge/ui/web/js/extjs/ext-extensions*.js osx/app RELEASE-VERSION .venv* +# used by setuptools to cache downloaded eggs +/.eggs diff --git a/deluge/core/core.py b/deluge/core/core.py index ff1aed022..881f0065d 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -358,8 +358,8 @@ class Core(component.Component): if blocks_read: self.session_status['read_hit_ratio'] = ( - self.session_status['disk.num_blocks_cache_hits'] / blocks_read - ) + blocks_read - self.session_status['disk.num_read_ops'] + ) / blocks_read else: self.session_status['read_hit_ratio'] = 0.0 |