From ceff625d322082f2cf6758a82eaff4f0792259fd Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Sat, 11 Feb 2017 01:23:07 -0500 Subject: [PATCH] fixed formatting of function arguments for CheckFit(...) --- schedulers/bpswMaxMin.go | 3 ++- schedulers/bpswMaxMinPistonCapping.go | 3 ++- schedulers/bpswMaxMinProacCC.go | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/schedulers/bpswMaxMin.go b/schedulers/bpswMaxMin.go index b98ab54..41356e2 100644 --- a/schedulers/bpswMaxMin.go +++ b/schedulers/bpswMaxMin.go @@ -139,7 +139,8 @@ func (s *BPSWMaxMinWatts) newTask(offer *mesos.Offer, task def.Task) *mesos.Task // Determine if the remaining space inside of the offer is enough for this // the task we need to create. If it is, create a TaskInfo and return it. -func (s *BPSWMaxMinWatts) CheckFit(i int, +func (s *BPSWMaxMinWatts) CheckFit( + i int, task def.Task, wattsConsideration float64, offer *mesos.Offer, diff --git a/schedulers/bpswMaxMinPistonCapping.go b/schedulers/bpswMaxMinPistonCapping.go index 1789a8d..925cbdc 100644 --- a/schedulers/bpswMaxMinPistonCapping.go +++ b/schedulers/bpswMaxMinPistonCapping.go @@ -228,7 +228,8 @@ func (s *BPSWMaxMinPistonCapping) stopCapping() { // Determine if the remaining sapce inside of the offer is enough for // the task we need to create. If it is, create a TaskInfo and return it. -func (s *BPSWMaxMinPistonCapping) CheckFit(i int, +func (s *BPSWMaxMinPistonCapping) CheckFit( + i int, task def.Task, wattsConsideration float64, offer *mesos.Offer, diff --git a/schedulers/bpswMaxMinProacCC.go b/schedulers/bpswMaxMinProacCC.go index dc6912a..8c7b880 100644 --- a/schedulers/bpswMaxMinProacCC.go +++ b/schedulers/bpswMaxMinProacCC.go @@ -252,7 +252,8 @@ func (s *BPSWMaxMinProacCC) stopRecapping() { // Determine if the remaining space inside of the offer is enough for // the task we need to create. If it is, create TaskInfo and return it. -func (s *BPSWMaxMinProacCC) CheckFit(i int, +func (s *BPSWMaxMinProacCC) CheckFit( + i int, task def.Task, wattsConsideration float64, offer *mesos.Offer,