]> git.datanom.net - omvzfs.git/blobdiff - src/Utils.php
Support used and free columns for pools in the overview
[omvzfs.git] / 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.028786 seconds and 5 git commands to generate.