1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00
This commit is contained in:
longXboy 2019-06-21 10:14:39 +08:00
parent 2470047483
commit eb0129cba4
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ func Test_CPUUsage(t *testing.T) {
var stat Stat
ReadStat(&stat)
fmt.Println(stat)
time.Sleep(time.Millisecond * 2600)
time.Sleep(time.Millisecond * 1000)
for i := 0; i < 6; i++ {
time.Sleep(time.Millisecond * 500)
ReadStat(&stat)

View File

@ -11,7 +11,7 @@ func Test_PsutilCPU(t *testing.T) {
if err != nil {
t.Fatalf("newPsutilCPU failed!err:=%v", err)
}
time.Sleep(time.Millisecond * 600)
time.Sleep(time.Millisecond * 2600)
for i := 0; i < 6; i++ {
time.Sleep(time.Millisecond * 600)
u, err := cpu.Usage()