]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
*** empty log message ***
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 1 Mar 2006 02:55:59 +0000 (02:55 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 1 Mar 2006 02:55:59 +0000 (02:55 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@704 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/mds/MDBalancer.cc

index 1b6ff968edd4bb46d209a7d04b999eef3dd62fdb..a9cc065fbc1ea1ff892b491f527df796681f43b3 100644 (file)
@@ -393,7 +393,8 @@ void MDBalancer::do_rebalance(int beat)
        double fac = 1.0;
        if (total_goal > 0 && total_sent > 0) {
          fac = total_goal / total_sent;
-         dout(5) << " total sent is " << total_goal << " / " << total_sent << " -> fac " << fac << endl;
+         dout(5) << " total sent is " << total_sent << " / " << total_goal << " -> fac 1/ " << fac << endl;
+         if (fac > 1.0) fac = 1.0;
        }
 
        int target = (*it).first;