[Pkg-ganeti-devel] [ganeti] 86/165: hcheck: offset absolute limit by theoretical minimum

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Tue Aug 11 13:53:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository ganeti.

commit a168eab05f57ba3f2d445ee469350d956ce5ac43
Author: Klaus Aehlig <aehlig at google.com>
Date:   Tue Mar 17 17:09:48 2015 +0100

    hcheck: offset absolute limit by theoretical minimum
    
    Signed-off-by: Klaus Aehlig <aehlig at google.com>
    Reviewed-by: Petr Pudlak <pudlak at google.com>
---
 src/Ganeti/HTools/Program/Hcheck.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Ganeti/HTools/Program/Hcheck.hs b/src/Ganeti/HTools/Program/Hcheck.hs
index 1f06adf..deb7fc2 100644
--- a/src/Ganeti/HTools/Program/Hcheck.hs
+++ b/src/Ganeti/HTools/Program/Hcheck.hs
@@ -280,7 +280,7 @@ maybeSimulateGroupRebalance :: Options -> GroupInfo -> IO GroupInfo
 maybeSimulateGroupRebalance opts (gidx, (nl, il)) = do
   let ini_cv = Cluster.compCV nl
       ini_tbl = Cluster.Table nl il ini_cv []
-      min_cv = optMinScore opts
+      min_cv = optMinScore opts + Cluster.optimalCVScore nl
   if ini_cv < min_cv
     then return (gidx, (nl, il))
     else executeSimulation opts ini_tbl min_cv gidx nl il

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git



More information about the Pkg-ganeti-devel mailing list