diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-03-01 07:42:59 -0800 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-03-01 07:42:59 -0800 |
commit | 6996f0a4a34e0744f09dbce39a2164c6fcee875e (patch) | |
tree | 0fc0175da3af4bb8d48a6750921e649a5a2f1571 /i3status.c | |
parent | df8d69a9953a0a7da48a17dae6d2d1327c330411 (diff) | |
parent | 562a879f7c40bb7586e2d4b8dc55cf3171e5d43d (diff) |
Merge pull request #3 from chrko/master
Modify print_disk_info. Now there is no output if the path is no mountpoint.
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; } |