]> git.datanom.net - omvzfs.git/commitdiff
Support used and free columns for pools in the overview
authorNiclas Berglind <nb@kjam.se>
Tue, 30 Sep 2014 18:48:51 +0000 (20:48 +0200)
committerMichael Rasmussen <mir@datanom.net>
Tue, 30 Sep 2014 22:37:45 +0000 (00:37 +0200)
Signed-off-by: Niclas Berglind <nb@kjam.se>
src/Utils.php

index 5658265a1744a0423d43d97e980eca18155e8bd9..1f1e8ebbc59ae6fb17c1ac23c9f3ee529c9ff393 100644 (file)
@@ -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 {
This page took 0.031739 seconds and 5 git commands to generate.