mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-27 02:20:32 +00:00
[UI] Remove num_blocks_cache_hits usage for stats
Removed in libtorrent v2: https://github.com/arvidn/libtorrent/commit/569d4
This commit is contained in:
parent
89189adb24
commit
54674576db
@ -160,7 +160,6 @@ DISK_CACHE_KEYS = [
|
|||||||
'disk.num_blocks_written',
|
'disk.num_blocks_written',
|
||||||
'disk.num_read_ops',
|
'disk.num_read_ops',
|
||||||
'disk.num_write_ops',
|
'disk.num_write_ops',
|
||||||
'disk.num_blocks_cache_hits',
|
|
||||||
'read_hit_ratio',
|
'read_hit_ratio',
|
||||||
'write_hit_ratio',
|
'write_hit_ratio',
|
||||||
'disk.disk_blocks_in_use',
|
'disk.disk_blocks_in_use',
|
||||||
|
@ -724,11 +724,6 @@ class CachePane(BasePreferencePane):
|
|||||||
self.add_info_field(
|
self.add_info_field(
|
||||||
'blocks_read', ' %s:' % _('Blocks Read'), status['disk.num_blocks_read']
|
'blocks_read', ' %s:' % _('Blocks Read'), status['disk.num_blocks_read']
|
||||||
)
|
)
|
||||||
self.add_info_field(
|
|
||||||
'blocks_read_hit',
|
|
||||||
' %s:' % _('Blocks Read hit'),
|
|
||||||
status['disk.num_blocks_cache_hits'],
|
|
||||||
)
|
|
||||||
self.add_info_field('reads', ' %s:' % _('Reads'), status['disk.num_read_ops'])
|
self.add_info_field('reads', ' %s:' % _('Reads'), status['disk.num_read_ops'])
|
||||||
self.add_info_field(
|
self.add_info_field(
|
||||||
'read_hit_ratio',
|
'read_hit_ratio',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.22.1 -->
|
<!-- Generated with glade 3.22.2 -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.0"/>
|
<requires lib="gtk+" version="3.0"/>
|
||||||
<object class="GtkAdjustment" id="adjustment_cache_expiry">
|
<object class="GtkAdjustment" id="adjustment_cache_expiry">
|
||||||
@ -245,7 +245,7 @@
|
|||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<signal name="configure-event" handler="on_pref_dialog_configure_event" swapped="no"/>
|
<signal name="configure-event" handler="on_pref_dialog_configure_event" swapped="no"/>
|
||||||
<signal name="delete-event" handler="on_pref_dialog_delete_event" swapped="no"/>
|
<signal name="delete-event" handler="on_pref_dialog_delete_event" swapped="no"/>
|
||||||
<child>
|
<child type="titlebar">
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
@ -3879,29 +3879,17 @@ the proxy instead of using the local DNS service</property>
|
|||||||
<property name="top_attach">0</property>
|
<property name="top_attach">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label119">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="tooltip_text" translatable="yes">The number of blocks that were served from cache.</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="label" translatable="yes">Blocks Read Hit:</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">0</property>
|
|
||||||
<property name="top_attach">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label122">
|
<object class="GtkLabel" id="label122">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="tooltip_text" translatable="yes">The cache hit ratio for the read cache.</property>
|
<property name="tooltip_text" translatable="yes">The cache hit ratio for the read cache.</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Read Cache Hit Ratio:</property>
|
<property name="label" translatable="yes">Read Cache Hit Ratio:</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">0</property>
|
<property name="left_attach">0</property>
|
||||||
<property name="top_attach">3</property>
|
<property name="top_attach">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -3914,16 +3902,6 @@ the proxy instead of using the local DNS service</property>
|
|||||||
<property name="top_attach">0</property>
|
<property name="top_attach">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="label_cache_num_blocks_cache_hits">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
|
||||||
<property name="top_attach">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label_cache_read_hit_ratio">
|
<object class="GtkLabel" id="label_cache_read_hit_ratio">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@ -3931,7 +3909,7 @@ the proxy instead of using the local DNS service</property>
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
<property name="top_attach">3</property>
|
<property name="top_attach">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -3945,7 +3923,7 @@ the proxy instead of using the local DNS service</property>
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">0</property>
|
<property name="left_attach">0</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="top_attach">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -3955,7 +3933,7 @@ the proxy instead of using the local DNS service</property>
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
<property name="top_attach">2</property>
|
<property name="top_attach">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -957,7 +957,6 @@ class Preferences(component.Component):
|
|||||||
'label_cache_num_blocks_written',
|
'label_cache_num_blocks_written',
|
||||||
'label_cache_read_hit_ratio',
|
'label_cache_read_hit_ratio',
|
||||||
'label_cache_write_hit_ratio',
|
'label_cache_write_hit_ratio',
|
||||||
'label_cache_num_blocks_cache_hits',
|
|
||||||
'label_cache_disk_blocks_in_use',
|
'label_cache_disk_blocks_in_use',
|
||||||
'label_cache_read_cache_blocks',
|
'label_cache_read_cache_blocks',
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user