Changes in uspace/app/top/top.c [d0c82c5:b3b7e14a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.c
rd0c82c5 rb3b7e14a 175 175 } 176 176 177 /* For each CPU: Compute total cycles and divide it between177 /* For each CPU: Compute total ticks and divide it between 178 178 user and kernel */ 179 179 … … 181 181 for (i = 0; i < new_data->cpus_count; i++) { 182 182 uint64_t idle = 183 new_data->cpus[i].idle_ cycles - old_data->cpus[i].idle_cycles;183 new_data->cpus[i].idle_ticks - old_data->cpus[i].idle_ticks; 184 184 uint64_t busy = 185 new_data->cpus[i].busy_ cycles - old_data->cpus[i].busy_cycles;185 new_data->cpus[i].busy_ticks - old_data->cpus[i].busy_ticks; 186 186 uint64_t sum = idle + busy; 187 187
Note:
See TracChangeset
for help on using the changeset viewer.