Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 18, 2023
1 parent 011858e commit 8445d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (c InfoStat) String() string {
}

func getAllBusy(t TimesStat) (float64, float64) {
fmt.Println("t:", t)
tot := t.Total()
if runtime.GOOS == "linux" {
tot -= t.Guest // Linux 2.6.24+
Expand All @@ -114,7 +115,6 @@ func getAllBusy(t TimesStat) (float64, float64) {
}

func calculateBusy(t1, t2 TimesStat) float64 {
fmt.Println(t1)
t1All, t1Busy := getAllBusy(t1)
t2All, t2Busy := getAllBusy(t2)

Expand Down

0 comments on commit 8445d4e

Please sign in to comment.