]> granicus.if.org Git - sysstat/commit
Try to avoid displaying healthy metrics values in "red" (#177)
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 10 Dec 2022 10:29:00 +0000 (11:29 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 10 Dec 2022 10:29:00 +0000 (11:29 +0100)
commitc2595c36db7ae42b39250d68777cb06617666fd2
tree46dedb4b019158b025f4e12777685d899bb4f3ce
parent842600ec2688eafbb917e16934d3a5319e6412db
Try to avoid displaying healthy metrics values in "red" (#177)

Percentage values are now displayed in specific colors when they are
greater or lower than a predefined limit depending on the metric's
meaning.
This means that, e.g. CPU %idle value will no longer be printed in red
if the CPU is actually idle.

Specific colors are now used when:
* values are greater than 90% (or lower than 10%),
* values are in the range 75% to 90% (or 25% to 10%).

This is probably still not perfect but should eliminate many questions.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.c
common.h
iostat.c
mpstat.c
pidstat.c
pr_stats.c
tapestat.c