Desable warning message concerning version when executed in local - Related to #2956

This commit is contained in:
nicolargo 2024-10-23 22:02:06 +02:00
parent 4f692fa185
commit 039dd00c96
2 changed files with 4 additions and 2 deletions

View File

@ -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/

View File

@ -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.")