Index: trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 13130)
+++ trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 13131)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.30 2007-05-02 20:14:45 jhoblitt Exp $
+# $Id: Server.pm,v 1.31 2007-05-02 20:53:42 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -1022,5 +1022,4 @@
 }
 
-#  select *, total - used as free, (used / total) * 100 as perused from mount;
 
 sub _get_storage_volume
@@ -1051,5 +1050,6 @@
         if ( $name ) {
             $query = $db->prepare_cached( $sql->get_storage_volume_byname );
-            $rows = $query->execute(0.95, $name);
+            # %free, name, avaiable, allocate
+            $rows = $query->execute(0.95, $name, 1, 1);
             unless ($rows > 0) {
                 $query->finish;
@@ -1063,5 +1063,6 @@
         } else {
             $query = $db->prepare_cached( $sql->get_storage_volume );
-            $rows = $query->execute(0.95);
+            # %free, avaiable, allocate
+            $rows = $query->execute(0.95, 1, 1);
             # there has to be atleast one storage volume
             unless ($rows > 0) {
