From: Gjum Date: Wed, 27 Jul 2016 17:57:50 +0000 (+0200) Subject: change default cpu_usage thresholds to 90 and 95 X-Git-Tag: 2.11~32^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F139%2Fhead;p=i3%2Fi3status change default cpu_usage thresholds to 90 and 95 --- 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