Removed a commented line.

This commit is contained in:
Pradyumna Kaushik 2016-11-28 16:29:12 -05:00 committed by Renan DelValle
parent 262b13e6b7
commit 978d51135b
2 changed files with 0 additions and 2 deletions

View file

@ -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.

View file

@ -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.