ing
This commit is contained in:
@@ -6,15 +6,15 @@ import (
|
||||
"bufio"
|
||||
)
|
||||
|
||||
type MEMStat struct {
|
||||
type MemStat struct {
|
||||
|
||||
}
|
||||
|
||||
func (cpu MEMStat) Command() string {
|
||||
func (mem MemStat) Command() string {
|
||||
return "cat /proc/meminfo"
|
||||
}
|
||||
|
||||
func (cpu MEMStat) Parse(r io.Reader) (map[string]string, error) {
|
||||
func (mem MemStat) Parse(r io.Reader) (map[string]string, error) {
|
||||
var (
|
||||
memInfo = map[string]string{}
|
||||
scanner = bufio.NewScanner(r)
|
||||
|
||||
Reference in New Issue
Block a user