X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3status.c;h=558f8ab311623eff122afbe071745e45e84c950b;hb=83d0b621c0b7ea0ffcf793e7fb4e0decdef63f3b;hp=3b9ab7214681d458356b4ef9b5c3db8becf0a753;hpb=7a7974d76dc9afd66d588148dce1610ec1fab439;p=i3%2Fi3status diff --git a/i3status.c b/i3status.c index 3b9ab72..558f8ab 100644 --- a/i3status.c +++ b/i3status.c @@ -422,6 +422,7 @@ int main(int argc, char *argv[]) { CFG_STR("format", "%usage", CFGF_NONE), CFG_STR("format_above_threshold", NULL, CFGF_NONE), CFG_STR("format_above_degraded_threshold", NULL, CFGF_NONE), + CFG_STR("path", "/proc/stat", CFGF_NONE), CFG_FLOAT("max_threshold", 95, CFGF_NONE), CFG_FLOAT("degraded_threshold", 90, CFGF_NONE), CFG_CUSTOM_ALIGN_OPT, @@ -751,7 +752,7 @@ int main(int argc, char *argv[]) { CASE_SEC("cpu_usage") { SEC_OPEN_MAP("cpu_usage"); - print_cpu_usage(json_gen, buffer, cfg_getstr(sec, "format"), cfg_getstr(sec, "format_above_threshold"), cfg_getstr(sec, "format_above_degraded_threshold"), cfg_getfloat(sec, "max_threshold"), cfg_getfloat(sec, "degraded_threshold")); + print_cpu_usage(json_gen, buffer, cfg_getstr(sec, "format"), cfg_getstr(sec, "format_above_threshold"), cfg_getstr(sec, "format_above_degraded_threshold"), cfg_getstr(sec, "path"), cfg_getfloat(sec, "max_threshold"), cfg_getfloat(sec, "degraded_threshold")); SEC_CLOSE_MAP; } }