Skip to content

Commit

Permalink
Fix one bug of print metrics mis-use. (#89)
Browse files Browse the repository at this point in the history
Signed-off-by: Pan Li <incarnation.p.lee@outlook.com>
  • Loading branch information
Incarnation-p-lee committed Jul 17, 2022
1 parent af2a75c commit 8e86705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/print/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func printSnapshotProcessesCPUUsage(processes []snapshot.Process) {
fmt.Printf("CPUUsage")

for _, process := range processes {
fmt.Printf("\t%.1f%%", process.MemoryStat.UsageInPercentage)
fmt.Printf("\t%.1f%%", process.CPUStat.UsageInPercentage)
}

fmt.Printf("\n")
Expand Down

0 comments on commit 8e86705

Please sign in to comment.