diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-01-06 18:22:46 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-01-06 18:22:46 +0100 |
commit | 4ec02bea7bbe534ef4b610bc63d1694bf0823174 (patch) | |
tree | 7135bc4c587523c1d43aafc832c4df0716c9061f /i3status.c | |
parent | 7507a3d03c59d4a94829040f591f4ea08f8f840a (diff) |
implement the 'path' option for cpu temperature
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -229,6 +229,7 @@ int main(int argc, char *argv[]) { cfg_opt_t temp_opts[] = { CFG_STR("format", "%degrees C", CFGF_NONE), + CFG_STR("path", NULL, CFGF_NONE), CFG_END() }; @@ -361,7 +362,7 @@ int main(int argc, char *argv[]) { cfg_getint(sec, "mixer_idx")); CASE_SEC_TITLE("cpu_temperature") - print_cpu_temperature_info(atoi(title), cfg_getstr(sec, "format")); + print_cpu_temperature_info(atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format")); } printf("\n"); fflush(stdout); |