mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 05:15:47 +03:00
Desable warning message concerning version when executed in local - Related to #2956
This commit is contained in:
parent
4f692fa185
commit
039dd00c96
@ -67,11 +67,13 @@ expression works as expected. You can use an online tool like `regex101`_ in
|
||||
order to test your regular expression.
|
||||
|
||||
You also can automatically hide intercae with no traffic using the
|
||||
``hide_zero`` configuration key.
|
||||
``hide_zero`` configuration key. The optional ``hide_threshold_bytes`` option
|
||||
can also be used to set a threshold higher than zero.
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
[diskio]
|
||||
hide_zero=True
|
||||
hide_threshold_bytes=0
|
||||
|
||||
.. _regex101: https://regex101.com/
|
||||
|
@ -196,7 +196,7 @@ class GlancesStandalone:
|
||||
self.stats.end()
|
||||
|
||||
# Check Glances version versus PyPI one
|
||||
if self.outdated.is_outdated():
|
||||
if self.outdated.is_outdated() and 'unknown' not in self.outdated.installed_version():
|
||||
latest_version = self.outdated.latest_version()
|
||||
installed_version = self.outdated.installed_version()
|
||||
print(f"You are using Glances version {installed_version}, however version {latest_version} is available.")
|
||||
|
Loading…
Reference in New Issue
Block a user