mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Keep 'avail' key - removed from glances - in disk fs monitoring
This commit is contained in:
parent
173d32134e
commit
5451f09b69
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ def monitor_disk(units=None, mountpoint=None, human_readable=False):
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
d['avail'] = d['size'] - d['used']
|
||||||
if human_readable:
|
if human_readable:
|
||||||
for i in ['used', 'avail', 'size']:
|
for i in ['used', 'avail', 'size']:
|
||||||
d[i] = binary_to_human(d[i]) + 'B'
|
d[i] = binary_to_human(d[i]) + 'B'
|
||||||
|
|
Loading…
Add table
Reference in a new issue