From 58289ed90f33bdba76aa4f9dfedabe8e97f4536b Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Thu, 10 Nov 2016 21:16:06 -0500 Subject: [PATCH] commented out the constant Clusterwide_cap_interval and its setter function. Instead hardcoding this in proactiveclusterwidecappingfcfs.go --- constants/constants.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index 50ca468..133d61f 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -86,18 +86,18 @@ func UpdateWindowSize(new_window_size int) bool { } } -// Time duration between successive cluster wide capping. -var Clusterwide_cap_interval = 10.0 // Right now capping the cluster at 10 second intervals. - -// Modify the cluster wide capping interval. We can update the interval depending on the workload. -// TODO: If the workload is heavy then we can set a longer interval, while on the other hand, -// if the workload is light then a smaller interval is sufficient. -func UpdateClusterwideCapInterval(new_interval float64) bool { - // Validation - if new_interval == 0.0 { - return false - } else { - Clusterwide_cap_interval = new_interval - return true - } -} +// // Time duration between successive cluster wide capping. +// var Clusterwide_cap_interval = 10 // Right now capping the cluster at 10 second intervals. +// +// // Modify the cluster wide capping interval. We can update the interval depending on the workload. +// // TODO: If the workload is heavy then we can set a longer interval, while on the other hand, +// // if the workload is light then a smaller interval is sufficient. +// func UpdateClusterwideCapInterval(new_interval int) bool { +// // Validation +// if new_interval == 0.0 { +// return false +// } else { +// Clusterwide_cap_interval = new_interval +// return true +// } +// }