system_test.go 194 Bytes
Newer Older
liming6's avatar
liming6 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package utils

import (
	"github.com/shirou/gopsutil/v4/cpu"
	"testing"
)

func TestGetSysUsers(t *testing.T) {
	a, e := cpu.Percent(0, false)
	if e != nil {
		t.Error(e)
	}
	t.Logf("%+v", a)
}