mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Remove unnecessary function
This commit is contained in:
parent
f201f512af
commit
56af4f147f
@ -39,20 +39,14 @@ struct ProcessorTime
|
||||
{
|
||||
uint64 user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice;
|
||||
|
||||
// formulas borrowed and modified from htop source code
|
||||
uint64 idleSum() const
|
||||
{
|
||||
return idle + iowait;
|
||||
}
|
||||
|
||||
uint64 systemSum() const
|
||||
{
|
||||
return system + irq + softirq;
|
||||
}
|
||||
|
||||
uint64 total() const
|
||||
{
|
||||
return user + nice + systemSum() + idleSum() + steal;
|
||||
return user + nice + system + idleSum() + irq + softirq + steal;
|
||||
}
|
||||
|
||||
double percentageActive(const ProcessorTime& before) const {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user