mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 01:01:31 +03:00
Improve DiskIO launch
This commit is contained in:
parent
f19bb75ccd
commit
eb7d3d28c2
@ -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'
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user