Add temp input plugin (#4411)

This commit is contained in:
pytimer
2018-09-11 02:52:15 +08:00
committed by Daniel Nelson
parent 69100f60b8
commit 25f9cc0b8d
6 changed files with 133 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/host"
"github.com/shirou/gopsutil/load"
"github.com/shirou/gopsutil/mem"
@@ -100,6 +101,15 @@ func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error) {
return r0, r1
}
func (m *MockPS) Temperature() ([]host.TemperatureStat, error) {
ret := m.Called()
r0 := ret.Get(0).([]host.TemperatureStat)
r1 := ret.Error(1)
return r0, r1
}
func (m *MockPS) NetConnections() ([]net.ConnectionStat, error) {
ret := m.Called()