From: Niclas Berglind Date: Tue, 30 Sep 2014 18:48:51 +0000 (+0200) Subject: Support used and free columns for pools in the overview X-Git-Url: http://git.datanom.net/omvzfs.git/commitdiff_plain/f30d664a33cbb45bfc33ffb58abf1d325351e964 Support used and free columns for pools in the overview Signed-off-by: Niclas Berglind --- diff --git a/src/Utils.php b/src/Utils.php index 5658265..1f1e8eb 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -200,8 +200,8 @@ class OMVModuleZFSUtil { 'path'=>$path); $pool = new OMVModuleZFSZpool($path); $tmp['size'] = $pool->getSize(); - $tmp['used'] = "n/a"; - $tmp['available'] = "n/a"; + $tmp['used'] = $pool->getAttribute("allocated"); + $tmp['available'] = $pool->getAttribute("free"); $tmp['mountpoint'] = $pool->getMountPoint(); array_push($objects,$tmp); } else {