update output (add zfs warning)

This commit is contained in:
Alexey Avramov 2020-05-05 02:44:08 +09:00
parent 80f1887eae
commit f142819d80

View File

@ -3796,8 +3796,9 @@ arcstats_path = '/proc/spl/kstat/zfs/arcstats'
ZFS = os.path.exists(arcstats_path)
if ZFS:
log('WARNING: ZFS found. Available memory will not be calculated '
'correctly (issue#89)')
try:
# find indexes
with open(arcstats_path, 'rb') as f:
@ -3819,6 +3820,7 @@ if ZFS:
continue
except Exception as e:
log(e)
ZFS = False
m0 = monotonic()