Changeset 13131 for trunk/Nebulous-Server/lib/Nebulous/Server.pm
- Timestamp:
- May 2, 2007, 10:53:42 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r13130 r13131 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.3 0 2007-05-02 20:14:45jhoblitt Exp $3 # $Id: Server.pm,v 1.31 2007-05-02 20:53:42 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 1022 1022 } 1023 1023 1024 # select *, total - used as free, (used / total) * 100 as perused from mount;1025 1024 1026 1025 sub _get_storage_volume … … 1051 1050 if ( $name ) { 1052 1051 $query = $db->prepare_cached( $sql->get_storage_volume_byname ); 1053 $rows = $query->execute(0.95, $name); 1052 # %free, name, avaiable, allocate 1053 $rows = $query->execute(0.95, $name, 1, 1); 1054 1054 unless ($rows > 0) { 1055 1055 $query->finish; … … 1063 1063 } else { 1064 1064 $query = $db->prepare_cached( $sql->get_storage_volume ); 1065 $rows = $query->execute(0.95); 1065 # %free, avaiable, allocate 1066 $rows = $query->execute(0.95, 1, 1); 1066 1067 # there has to be atleast one storage volume 1067 1068 unless ($rows > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
