IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30679


Ignore:
Timestamp:
Feb 17, 2011, 3:23:47 PM (15 years ago)
Author:
eugene
Message:

merge changes from the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/Nebulous-Server/bin/neb-admin

    r29669 r30679  
    312312      SELECT mountedvol.vol_id,mountedvol.name,mountedvol.available,mountedvol.allocate,total,used,
    313313             (used / total) AS D,total * ((used / total) - $average ) AS R,  -- average
     314             (used / total) - $average AS delta,
    314315             cab_id FROM
    315316      mountedvol JOIN volume USING(vol_id)
    316317      WHERE mountedvol.available = 1
    317       ORDER BY R DESC LIMIT $balance_N_sources                                            -- N
     318      ORDER BY delta DESC LIMIT $balance_N_sources                                            -- N
    318319      ) AS ranked_sources
    319320      -- Z End
     
    337338   SELECT mountedvol.vol_id,mountedvol.name,mountedvol.host,mountedvol.available,mountedvol.allocate,total,used,
    338339          (used / total) AS D,total * ((used / total) - $average ) AS R,  -- average
     340          (used / total) - $average AS delta,
    339341          cab_id FROM
    340342   mountedvol JOIN volume USING(vol_id)
    341343   WHERE mountedvol.available = 1 AND mountedvol.allocate = 1
    342    ORDER BY R ASC LIMIT $balance_M_destinations                                               -- M
     344   ORDER BY delta ASC LIMIT $balance_M_destinations                                               -- M
    343345  ) AS ranked_destinations
    344346  -- Z2 End
Note: See TracChangeset for help on using the changeset viewer.