From 978d51135bbece258c99d556cf435ea083c23150 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Mon, 28 Nov 2016 16:29:12 -0500 Subject: [PATCH] Removed a commented line. --- schedulers/proactiveclusterwidecappingfcfs.go | 1 - schedulers/proactiveclusterwidecappingranked.go | 1 - 2 files changed, 2 deletions(-) diff --git a/schedulers/proactiveclusterwidecappingfcfs.go b/schedulers/proactiveclusterwidecappingfcfs.go index 4a13574..5ff439f 100644 --- a/schedulers/proactiveclusterwidecappingfcfs.go +++ b/schedulers/proactiveclusterwidecappingfcfs.go @@ -193,7 +193,6 @@ func (s *ProactiveClusterwideCapFCFS) startRecapping() { case <-s.recapTicker.C: fcfsMutex.Lock() // If stopped performing cluster wide capping then we need to explicitly cap the entire cluster. - //if !s.isCapping && s.isRecapping && fcfsRecapValue > 0.0 { if s.isRecapping && fcfsRecapValue > 0.0 { for _, host := range constants.Hosts { // Rounding curreCapValue to the nearest int. diff --git a/schedulers/proactiveclusterwidecappingranked.go b/schedulers/proactiveclusterwidecappingranked.go index a6f8aa8..3c9ef81 100644 --- a/schedulers/proactiveclusterwidecappingranked.go +++ b/schedulers/proactiveclusterwidecappingranked.go @@ -203,7 +203,6 @@ func (s *ProactiveClusterwideCapRanked) startRecapping() { case <-s.recapTicker.C: rankedMutex.Lock() // If stopped performing cluster wide capping then we need to explicitly cap the entire cluster. - //if !s.isCapping && s.isRecapping && rankedRecapValue > 0.0 { if s.isRecapping && rankedRecapValue > 0.0 { for _, host := range constants.Hosts { // Rounding curreCapValue to the nearest int.