mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Fixing format with gofmt
This commit is contained in:
		@@ -3,8 +3,8 @@ package collectors
 | 
			
		||||
import (
 | 
			
		||||
	"io/ioutil"
 | 
			
		||||
	"strconv"
 | 
			
		||||
	"time"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const LOADAVGFILE = `/proc/loadavg`
 | 
			
		||||
@@ -13,13 +13,12 @@ type LoadavgCollector struct {
 | 
			
		||||
	MetricCollector
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
func (m *LoadavgCollector) Init() {
 | 
			
		||||
    m.name = "LoadavgCollector"
 | 
			
		||||
	m.name = "LoadavgCollector"
 | 
			
		||||
	m.setup()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *LoadavgCollector) Read(interval time.Duration){
 | 
			
		||||
func (m *LoadavgCollector) Read(interval time.Duration) {
 | 
			
		||||
	buffer, err := ioutil.ReadFile(string(LOADAVGFILE))
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -36,5 +35,5 @@ func (m *LoadavgCollector) Read(interval time.Duration){
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *LoadavgCollector) Close() {
 | 
			
		||||
    return
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user