From d5d3c87ff24dc7fb534ba0a0e85a2b6c42605101 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Wed, 15 Feb 2017 19:15:18 -0500 Subject: [PATCH] added a constant called CapThreshold that defines the lower limit below which we shouldn't cap a node. --- constants/constants.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/constants/constants.go b/constants/constants.go index bbacf42..782f33d 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -43,3 +43,6 @@ var Tolerance = 0.70 // Window size for running average var ConsiderationWindowSize = 20 + +// Threshold below which a host should be capped +var CapThreshold = 12.5