From f30d664a33cbb45bfc33ffb58abf1d325351e964 Mon Sep 17 00:00:00 2001 From: Niclas Berglind Date: Tue, 30 Sep 2014 20:48:51 +0200 Subject: [PATCH] Support used and free columns for pools in the overview Signed-off-by: Niclas Berglind --- src/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.2