update output (add zfs warning)
This commit is contained in:
parent
80f1887eae
commit
f142819d80
@ -3796,8 +3796,9 @@ arcstats_path = '/proc/spl/kstat/zfs/arcstats'
|
|||||||
|
|
||||||
ZFS = os.path.exists(arcstats_path)
|
ZFS = os.path.exists(arcstats_path)
|
||||||
|
|
||||||
|
|
||||||
if ZFS:
|
if ZFS:
|
||||||
|
log('WARNING: ZFS found. Available memory will not be calculated '
|
||||||
|
'correctly (issue#89)')
|
||||||
try:
|
try:
|
||||||
# find indexes
|
# find indexes
|
||||||
with open(arcstats_path, 'rb') as f:
|
with open(arcstats_path, 'rb') as f:
|
||||||
@ -3819,6 +3820,7 @@ if ZFS:
|
|||||||
continue
|
continue
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log(e)
|
log(e)
|
||||||
|
ZFS = False
|
||||||
|
|
||||||
|
|
||||||
m0 = monotonic()
|
m0 = monotonic()
|
||||||
|
Loading…
Reference in New Issue
Block a user