Changed alias elekLogT to elekLogTypes
This commit is contained in:
parent
20f2f1e8c5
commit
13c3de44be
10 changed files with 85 additions and 82 deletions
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/montanaflynn/stats"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/spdfg/elektron/elektronLogging"
|
||||
elekLogT "github.com/spdfg/elektron/elektronLogging/types"
|
||||
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types"
|
||||
)
|
||||
|
||||
// Information about a cluster of tasks.
|
||||
|
@ -52,7 +52,7 @@ func (tc TasksToClassify) taskObservationCalculator(task Task) []float64 {
|
|||
} else if task.Watts != 0.0 {
|
||||
return []float64{task.Watts}
|
||||
} else {
|
||||
elektronLogging.ElektronLog.Log(elekLogT.ERROR, log.FatalLevel,
|
||||
elektronLogging.ElektronLog.Log(elekLogTypes.ERROR, log.FatalLevel,
|
||||
log.Fields{}, "Unable to classify tasks. Missing Watts or ClassToWatts attribute in workload")
|
||||
return []float64{0.0} // Won't reach here.
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ func clusterSizeAvgMMMPU(tasks []Task, taskObservation func(task Task) []float64
|
|||
} else {
|
||||
// skip this value
|
||||
// there is an error in the task config.
|
||||
elektronLogging.ElektronLog.Log(elekLogT.ERROR, log.ErrorLevel,
|
||||
elektronLogging.ElektronLog.Log(elekLogTypes.ERROR, log.ErrorLevel,
|
||||
log.Fields{}, fmt.Sprintf("%s", err))
|
||||
}
|
||||
} else {
|
||||
|
|
Reference in a new issue