diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-05-25 09:57:03 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-05-25 09:57:03 +0200 |
commit | 850f6720b5b7323a2b986d8da1baa04077278323 (patch) | |
tree | ee87f37a03804f6fa18ce9e7c98d994ccfea9924 /i3status.c | |
parent | 7c02c10b728a099a6d328df9cfd9a3f1c4b88702 (diff) |
rename threshold to low_threshold and document it properly
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -214,7 +214,7 @@ int main(int argc, char *argv[]) { cfg_opt_t battery_opts[] = { CFG_STR("format", "%status %percentage %remaining", CFGF_NONE), CFG_STR("path", "/sys/class/power_supply/BAT%d/uevent", CFGF_NONE), - CFG_INT("threshold", 10, CFGF_NONE), + CFG_INT("low_threshold", 10, CFGF_NONE), CFG_BOOL("last_full_capacity", false, CFGF_NONE), CFG_END() }; @@ -414,7 +414,7 @@ int main(int argc, char *argv[]) { CASE_SEC_TITLE("battery") { SEC_OPEN_MAP("battery"); - print_battery_info(json_gen, buffer, atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getint(sec, "threshold"), cfg_getbool(sec, "last_full_capacity")); + print_battery_info(json_gen, buffer, atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getint(sec, "low_threshold"), cfg_getbool(sec, "last_full_capacity")); SEC_CLOSE_MAP; } |