summaryrefslogtreecommitdiffstats
path: root/deluge
diff options
context:
space:
mode:
Diffstat (limited to 'deluge')
-rw-r--r--deluge/core/core.py4
1 files changed, 2 insertions, 2 deletions
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