diff options
author | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-18 23:43:25 +0100 |
---|---|---|
committer | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-18 23:43:25 +0100 |
commit | 85bb373095d296a90a7a1e8741229dc4dcb9acc8 (patch) | |
tree | 41cde895aaab8e66533e4394abe2edfae45e18d1 /i3status.c | |
parent | f7b25a15dd913dc7a40e3db957d216792c2fb694 (diff) |
Adding optional configuration option to "print_disk_info".
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -386,6 +386,7 @@ int main(int argc, char *argv[]) { cfg_opt_t disk_opts[] = { CFG_STR("format", "%free", CFGF_NONE), + CFG_STR("format_not_mounted", NULL, CFGF_NONE), CFG_STR("prefix_type", "binary", CFGF_NONE), CFG_STR("threshold_type", "percentage_avail", CFGF_NONE), CFG_FLOAT("low_threshold", 0, CFGF_NONE), @@ -621,7 +622,7 @@ int main(int argc, char *argv[]) { CASE_SEC_TITLE("disk") { SEC_OPEN_MAP("disk_info"); - print_disk_info(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "prefix_type"), cfg_getstr(sec, "threshold_type"), cfg_getfloat(sec, "low_threshold")); + print_disk_info(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "format_not_mounted"), cfg_getstr(sec, "prefix_type"), cfg_getstr(sec, "threshold_type"), cfg_getfloat(sec, "low_threshold")); SEC_CLOSE_MAP; } |