top: added 'guest' tics when multiple cpus were merged
The 'guest' tics are added in the sum_tics function, but when multiple cpus are combined for display, the 'guest' tics are not added cumulatively in the sum_unify function. signed-off-by: zhoujie <zhoujie133@huawei.com>
This commit is contained in:
parent
0e98e06777
commit
833cdc64f0
@ -6396,6 +6396,8 @@ static int sum_unify (struct stat_stack *this, int nobuf) {
|
|||||||
stack[stat_IR].result.sl_int += rSv(stat_IR, sl_int);
|
stack[stat_IR].result.sl_int += rSv(stat_IR, sl_int);
|
||||||
stack[stat_SI].result.sl_int += rSv(stat_SI, sl_int);
|
stack[stat_SI].result.sl_int += rSv(stat_SI, sl_int);
|
||||||
stack[stat_ST].result.sl_int += rSv(stat_ST, sl_int);
|
stack[stat_ST].result.sl_int += rSv(stat_ST, sl_int);
|
||||||
|
stack[stat_GU].result.sl_int += rSv(stat_GU, sl_int);
|
||||||
|
stack[stat_GN].result.sl_int += rSv(stat_GN, sl_int);
|
||||||
stack[stat_SUM_USR].result.sl_int += rSv(stat_SUM_USR, sl_int);
|
stack[stat_SUM_USR].result.sl_int += rSv(stat_SUM_USR, sl_int);
|
||||||
stack[stat_SUM_SYS].result.sl_int += rSv(stat_SUM_SYS, sl_int);
|
stack[stat_SUM_SYS].result.sl_int += rSv(stat_SUM_SYS, sl_int);
|
||||||
stack[stat_SUM_TOT].result.sl_int += rSv(stat_SUM_TOT, sl_int);
|
stack[stat_SUM_TOT].result.sl_int += rSv(stat_SUM_TOT, sl_int);
|
||||||
|
Loading…
Reference in New Issue
Block a user