summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glances/plugins/diskio/__init__.py4
-rw-r--r--glances/plugins/network/__init__.py2
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)