From ed8799566b424c23f10e559cc5585d5099b717c1 Mon Sep 17 00:00:00 2001 From: Abhishek Jain Date: Fri, 24 Mar 2017 16:25:24 -0400 Subject: [PATCH] Removed the hardcoded nodes and their powerclasses from the PowerClasses map as now it will populated dynamically --- constants/constants.go | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index b0c81a3..313b620 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -14,24 +14,7 @@ var Hosts = make(map[string]struct{}) The power classes are labelled in the decreasing order of the corresponding TDP, with class A nodes having the highest TDP and class C nodes having the lowest TDP. */ -var PowerClasses = map[string]map[string]bool{ - "A": map[string]bool{ - "stratos-005.cs.binghamton.edu": true, - "stratos-006.cs.binghamton.edu": true, - }, - "B": map[string]bool{ - "stratos-007.cs.binghamton.edu": true, - }, - "C": map[string]bool{ - "stratos-008.cs.binghamton.edu": true, - }, - "D": map[string]bool{ - "stratos-001.cs.binghamton.edu": true, - "stratos-002.cs.binghamton.edu": true, - "stratos-003.cs.binghamton.edu": true, - "stratos-004.cs.binghamton.edu": true, - }, -} +var PowerClasses = make(map[string]map[string]struct{}) /* Margin with respect to the required power for a job.