mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-09 03:28:03 +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 = False
|
||||||
self.hide_zero_fields = ['read_bytes', 'write_bytes']
|
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):
|
def get_key(self):
|
||||||
"""Return the key of the list."""
|
"""Return the key of the list."""
|
||||||
return 'disk_name'
|
return 'disk_name'
|
||||||
|
@ -105,7 +105,7 @@ class PluginModel(GlancesPluginModel):
|
|||||||
self.hide_zero = False
|
self.hide_zero = False
|
||||||
self.hide_zero_fields = ['bytes_recv', 'bytes_sent']
|
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.update()
|
||||||
self.refresh_timer.set(0)
|
self.refresh_timer.set(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user