From 5451f09b6955959dcb8f07ac561173a3c6eb3da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Tue, 1 Mar 2016 21:25:52 +0100 Subject: [PATCH] [fix] Keep 'avail' key - removed from glances - in disk fs monitoring --- src/yunohost/monitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/yunohost/monitor.py b/src/yunohost/monitor.py index 0f3ed912f..41b2a4d06 100644 --- a/src/yunohost/monitor.py +++ b/src/yunohost/monitor.py @@ -130,6 +130,7 @@ def monitor_disk(units=None, mountpoint=None, human_readable=False): except: continue else: + d['avail'] = d['size'] - d['used'] if human_readable: for i in ['used', 'avail', 'size']: d[i] = binary_to_human(d[i]) + 'B'