Changeset 30679
- Timestamp:
- Feb 17, 2011, 3:23:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/Nebulous-Server/bin/neb-admin
r29669 r30679 312 312 SELECT mountedvol.vol_id,mountedvol.name,mountedvol.available,mountedvol.allocate,total,used, 313 313 (used / total) AS D,total * ((used / total) - $average ) AS R, -- average 314 (used / total) - $average AS delta, 314 315 cab_id FROM 315 316 mountedvol JOIN volume USING(vol_id) 316 317 WHERE mountedvol.available = 1 317 ORDER BY RDESC LIMIT $balance_N_sources -- N318 ORDER BY delta DESC LIMIT $balance_N_sources -- N 318 319 ) AS ranked_sources 319 320 -- Z End … … 337 338 SELECT mountedvol.vol_id,mountedvol.name,mountedvol.host,mountedvol.available,mountedvol.allocate,total,used, 338 339 (used / total) AS D,total * ((used / total) - $average ) AS R, -- average 340 (used / total) - $average AS delta, 339 341 cab_id FROM 340 342 mountedvol JOIN volume USING(vol_id) 341 343 WHERE mountedvol.available = 1 AND mountedvol.allocate = 1 342 ORDER BY RASC LIMIT $balance_M_destinations -- M344 ORDER BY delta ASC LIMIT $balance_M_destinations -- M 343 345 ) AS ranked_destinations 344 346 -- Z2 End
Note:
See TracChangeset
for help on using the changeset viewer.
