Got rid of commented code
This commit is contained in:
parent
9546529f80
commit
85b14e125d
1 changed files with 0 additions and 17 deletions
17
pcp/pcp.go
17
pcp/pcp.go
|
@ -37,15 +37,6 @@ func Start(quit chan struct{}, logging *bool, prefix string) {
|
|||
// Write to logfile
|
||||
logFile.WriteString(scanner.Text() + "\n")
|
||||
|
||||
/*
|
||||
headers := strings.Split(scanner.Text(), ",")
|
||||
|
||||
for _, hostMetric := range headers {
|
||||
split := strings.Split(hostMetric, ":")
|
||||
fmt.Printf("Host %s: Metric: %s\n", split[0], split[1])
|
||||
}
|
||||
*/
|
||||
|
||||
// Throw away first set of results
|
||||
scanner.Scan()
|
||||
|
||||
|
@ -57,15 +48,7 @@ func Start(quit chan struct{}, logging *bool, prefix string) {
|
|||
logFile.WriteString(scanner.Text() + "\n")
|
||||
}
|
||||
|
||||
/*
|
||||
fmt.Printf("Second: %d\n", seconds)
|
||||
for i, val := range strings.Split(scanner.Text(), ",") {
|
||||
fmt.Printf("host metric: %s val: %s\n", headers[i], val)
|
||||
}*/
|
||||
|
||||
seconds++
|
||||
|
||||
// fmt.Println("--------------------------------")
|
||||
}
|
||||
}(logging)
|
||||
|
||||
|
|
Reference in a new issue