Do not display zsh share twice

pull/1715/head
nicolargo 2020-08-22 12:26:05 +02:00
parent 2bbb8f7749
commit c23586b6e9
3 changed files with 3 additions and 5 deletions

View File

@ -184,7 +184,7 @@ careful=50
warning=70
critical=90
# Allow additional file system types (comma-separated FS type)
#allow=zfs
#allow=shm
[irq]
# Documentation: https://glances.readthedocs.io/en/stable/aoa/irq.html

View File

@ -27,13 +27,13 @@ User disk space usage Status
By default, the plugin only displays physical devices (hard disks, USB
keys). To allow other file system types, you have to enable them in the
configuration file. For example, if you want to allow the ``zfs`` file
configuration file. For example, if you want to allow the ``shm`` file
system:
.. code-block:: ini
[fs]
allow=zfs
allow=shm
Also, you can hide mount points as well (in the following ``/boot``):

View File

@ -103,8 +103,6 @@ class Plugin(GlancesPlugin):
return self.stats
# Optionnal hack to allow logicals mounts points (issue #448)
# Ex: Had to put 'allow=zfs' in the [fs] section of the conf file
# to allow zfs monitoring
for fstype in self.get_conf_value('allow'):
try:
fs_stat += [f for f in psutil.disk_partitions(all=True) if f.fstype.find(fstype) >= 0]