Skip to content

Commit

Permalink
sar: Add missing %gnice CPU value for tickless CPU
Browse files Browse the repository at this point in the history
A field (which should be displayed as 0.00) was missing in CPU
statistics displayed by "sar -u ALL" for tickless CPUs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
  • Loading branch information
sysstat committed Apr 19, 2019
1 parent ffed18b commit c542c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ __print_funct_t print_cpu_stats(struct activity *a, int prev, int curr,
* %irq, %soft, %guest, %gnice.
*/
else if (DISPLAY_CPU_ALL(a->opt_flags)) {
cprintf_pc(DISPLAY_UNIT(flags), 4, 9, 2,
0.0, 0.0, 0.0, 100.0);
cprintf_pc(DISPLAY_UNIT(flags), 5, 9, 2,
0.0, 0.0, 0.0, 0.0, 100.0);
printf("\n");
}
continue;
Expand Down

0 comments on commit c542c25

Please sign in to comment.