Skip to content

Commit

Permalink
Improve DiskIO launch
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Feb 17, 2024
1 parent f19bb75 commit eb7d3d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions glances/plugins/diskio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def __init__(self, args=None, config=None):
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'
Expand Down
2 changes: 1 addition & 1 deletion glances/plugins/network/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, args=None, config=None):
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)

Expand Down

0 comments on commit eb7d3d2

Please sign in to comment.