diff options
author | nicolargo <nicolas@nicolargo.com> | 2024-02-17 16:59:35 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2024-02-17 16:59:35 +0100 |
commit | eb7d3d28c2bf5538e5d2b8db223b072d05fc3b36 (patch) | |
tree | 90e382fbaef87860bc7400c6ae42509b88b0e4c7 | |
parent | f19bb75ccdd2e9848a611f27340016a2b34194cc (diff) |
Improve DiskIO launchfeature/issue2414
-rw-r--r-- | glances/plugins/diskio/__init__.py | 4 | ||||
-rw-r--r-- | glances/plugins/network/__init__.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/glances/plugins/diskio/__init__.py b/glances/plugins/diskio/__init__.py index f7113e85..9e9bcc7c 100644 --- a/glances/plugins/diskio/__init__.py +++ b/glances/plugins/diskio/__init__.py @@ -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' diff --git a/glances/plugins/network/__init__.py b/glances/plugins/network/__init__.py index 97dff671..be354355 100644 --- a/glances/plugins/network/__init__.py +++ b/glances/plugins/network/__init__.py @@ -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) |