Improve DiskIO launch

This commit is contained in:
nicolargo 2024-02-17 16:59:35 +01:00
parent f19bb75ccd
commit eb7d3d28c2
2 changed files with 5 additions and 1 deletions

View File

@ -89,6 +89,10 @@ class PluginModel(GlancesPluginModel):
self.hide_zero = False
self.hide_zero_fields = ['read_bytes', 'write_bytes']
# Force a first update because we need two updates to have the first stat
self.update()
self.refresh_timer.set(0)
def get_key(self):
"""Return the key of the list."""
return 'disk_name'

View File

@ -105,7 +105,7 @@ class PluginModel(GlancesPluginModel):
self.hide_zero = False
self.hide_zero_fields = ['bytes_recv', 'bytes_sent']
# Force a first update because we need two update to have the first stat
# Force a first update because we need two updates to have the first stat
self.update()
self.refresh_timer.set(0)