From dbc0f9bd8c3561eb7b9c2d7c13518cb825695d23 Mon Sep 17 00:00:00 2001 From: Gjum Date: Wed, 27 Jul 2016 19:57:50 +0200 Subject: [PATCH] change default cpu_usage thresholds to 90 and 95 --- i3status.c | 4 ++-- man/i3status.man | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/i3status.c b/i3status.c index 54d850f..e213da4 100644 --- a/i3status.c +++ b/i3status.c @@ -413,8 +413,8 @@ int main(int argc, char *argv[]) { cfg_opt_t usage_opts[] = { CFG_STR("format", "%usage", CFGF_NONE), - CFG_FLOAT("max_threshold", 200, CFGF_NONE), - CFG_FLOAT("degraded_threshold", 200, CFGF_NONE), + CFG_FLOAT("max_threshold", 95, CFGF_NONE), + CFG_FLOAT("degraded_threshold", 90, CFGF_NONE), CFG_CUSTOM_ALIGN_OPT, CFG_CUSTOM_COLOR_OPTS, CFG_CUSTOM_MIN_WIDTH_OPT, diff --git a/man/i3status.man b/man/i3status.man index f5baa2f..a557ae3 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -386,19 +386,19 @@ Gets the percentual CPU usage from +/proc/stat+ (Linux) or +sysctl(3)+ It is possible to define a max_threshold that will color the load value red in case the CPU average over the last interval is getting -higher than the configured threshold. Defaults to 200 (i.e. off). +higher than the configured threshold. Defaults to 95. It is possible to define a degraded_threshold that will color the load value yellow in case the CPU average over the last interval is getting -higher than the configured threshold. Defaults to 150 (i.e. off). +higher than the configured threshold. Defaults to 90. *Example order*: +cpu_usage+ *Example format*: +%usage+ -*Example max_threshold*: +"200,0"+ +*Example max_threshold*: +75+ -*Example degraded_threshold*: +"150,0"+ +*Example degraded_threshold*: +25+ === Load -- 2.39.2