remove unsed function
This commit is contained in:
parent
65e6bb5583
commit
4833df4552
|
@ -2,7 +2,6 @@
|
|||
package ipmi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -81,16 +80,6 @@ func (m *Ipmi) gatherServer(serv string, acc telegraf.Accumulator) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func Atofloat4(val float64) float64 {
|
||||
str := fmt.Sprintf("%.4f", val)
|
||||
return Atofloat(str)
|
||||
}
|
||||
|
||||
func Atofloat2(val float64) float64 {
|
||||
str := fmt.Sprintf("%.2f", val)
|
||||
return Atofloat(str)
|
||||
}
|
||||
|
||||
func Atofloat(val string) float64 {
|
||||
f, err := strconv.ParseFloat(val, 64)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue