mirror of https://github.com/nicolargo/glances
Do not display zsh share twice
parent
2bbb8f7749
commit
c23586b6e9
|
@ -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
|
||||
|
|
|
@ -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``):
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue