The optimization minimizes the score, but the comment says only "best",
which is ambiguous.

Signed-off-by: Aaron Karper <[email protected]>
---
 src/Ganeti/HTools/Cluster.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Ganeti/HTools/Cluster.hs b/src/Ganeti/HTools/Cluster.hs
index 1266dca..862cb96 100644
--- a/src/Ganeti/HTools/Cluster.hs
+++ b/src/Ganeti/HTools/Cluster.hs
@@ -765,7 +765,7 @@ collapseFailures flst =
       -- ^ This isn't the prettiest way to count, but the fastest one
   in map (\k -> (k, count k)) [minBound..maxBound]
 
--- | Compares two Maybe AllocElement and chooses the best score.
+-- | Compares two Maybe AllocElement and chooses the smallest score.
 bestAllocElement :: Maybe Node.AllocElement
                  -> Maybe Node.AllocElement
                  -> Maybe Node.AllocElement
-- 
2.2.0.rc0.207.ga3a616c

Reply via email to