summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorM. Kory Woods <kory@virlo.net>2013-07-07 10:54:50 -0500
committerMichael Stapelberg <michael@stapelberg.de>2013-07-09 23:22:26 +0200
commit41be50a983e4c7313ef63b4b5a7b2db30575c9ba (patch)
treed5d412007fc77e9cb0707eab1c36f5dd6d29de77 /i3status.c
parentcf417ffeb1423024d109da57ba71796b42ab5ce3 (diff)
allow load to be a float
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3status.c b/i3status.c
index ded5799..e99e627 100644
--- a/i3status.c
+++ b/i3status.c
@@ -261,7 +261,7 @@ int main(int argc, char *argv[]) {
cfg_opt_t load_opts[] = {
CFG_STR("format", "%1min %5min %15min", CFGF_NONE),
- CFG_INT("max_threshold", 5, CFGF_NONE),
+ CFG_FLOAT("max_threshold", 5, CFGF_NONE),
CFG_CUSTOM_COLOR_OPTS,
CFG_END()
};
@@ -488,7 +488,7 @@ int main(int argc, char *argv[]) {
CASE_SEC("load") {
SEC_OPEN_MAP("load");
- print_load(json_gen, buffer, cfg_getstr(sec, "format"), cfg_getint(sec, "max_threshold"));
+ print_load(json_gen, buffer, cfg_getstr(sec, "format"), cfg_getfloat(sec, "max_threshold"));
SEC_CLOSE_MAP;
}