mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-07-31 08:56:06 +02:00
Fixing format with gofmt
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
//protocol "github.com/influxdata/line-protocol"
|
||||
)
|
||||
|
||||
@@ -17,13 +16,12 @@ type MemstatCollector struct {
|
||||
MetricCollector
|
||||
}
|
||||
|
||||
|
||||
func (m *MemstatCollector) Init() {
|
||||
m.name = "MemstatCollector"
|
||||
m.name = "MemstatCollector"
|
||||
m.setup()
|
||||
}
|
||||
|
||||
func (m *MemstatCollector) Read(interval time.Duration){
|
||||
func (m *MemstatCollector) Read(interval time.Duration) {
|
||||
buffer, err := ioutil.ReadFile(string(MEMSTATFILE))
|
||||
|
||||
if err != nil {
|
||||
@@ -53,5 +51,5 @@ func (m *MemstatCollector) Read(interval time.Duration){
|
||||
}
|
||||
|
||||
func (m *MemstatCollector) Close() {
|
||||
return
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user