pcp: Remove unused functions
This commit is contained in:
parent
c52bfb08c5
commit
2d3158d99a
2 changed files with 1 additions and 12 deletions
|
@ -11,8 +11,6 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
"github.com/montanaflynn/stats"
|
"github.com/montanaflynn/stats"
|
||||||
"github.com/mesos/mesos-go/api/v0/mesosproto"
|
|
||||||
"path/filepath"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Start(quit chan struct{}, logging *bool, logMType chan elecLogDef.LogMessageType, logMsg chan string, s scheduler.Scheduler) {
|
func Start(quit chan struct{}, logging *bool, logMType chan elecLogDef.LogMessageType, logMsg chan string, s scheduler.Scheduler) {
|
||||||
|
@ -38,7 +36,7 @@ func Start(quit chan struct{}, logging *bool, logMType chan elecLogDef.LogMessag
|
||||||
logMsg <- scanner.Text()
|
logMsg <- scanner.Text()
|
||||||
|
|
||||||
logMType <- elecLogDef.DEG_COL
|
logMType <- elecLogDef.DEG_COL
|
||||||
logMsg <- fmt.Sprintf("CPU Variance, CPU Task Share Variance, Memory Variance, Memory Task Share Variance")
|
logMsg <- "CPU Variance, CPU Task Share Variance, Memory Variance, Memory Task Share Variance"
|
||||||
|
|
||||||
// Throw away first set of results
|
// Throw away first set of results
|
||||||
scanner.Scan()
|
scanner.Scan()
|
||||||
|
|
|
@ -50,15 +50,6 @@ func AverageClusterPowerHistory(history *ring.Ring) float64 {
|
||||||
return (total / count)
|
return (total / count)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sumAndNormalize(tokenSlice []string, normalizer float64) float64 {
|
|
||||||
sum := 0.0
|
|
||||||
for _, value := range tokenSlice {
|
|
||||||
i, _ := strconv.ParseFloat(value, 64)
|
|
||||||
sum += i
|
|
||||||
}
|
|
||||||
return sum / normalizer
|
|
||||||
}
|
|
||||||
|
|
||||||
func utilization(used string, free string) float64 {
|
func utilization(used string, free string) float64 {
|
||||||
u, _ := strconv.ParseFloat(used, 64)
|
u, _ := strconv.ParseFloat(used, 64)
|
||||||
f, _ := strconv.ParseFloat(free, 64)
|
f, _ := strconv.ParseFloat(free, 64)
|
||||||
|
|
Reference in a new issue