Open Quang0309 opened 5 years ago
Hello @Quang0309,
I just saw your issue now!
I don't know the logic behind that operation. But the way it's calculated is taken from this StackOverflow question: How to calculate the CPU usage of a process by PID in Linux from C?
Antonio
I have a question about the way you calculate the percentage, why we must take the totalT instead of total to calculate the CPU usage percentage?