Corrections according to PR review
This commit is contained in:
parent
ac6c2a7d46
commit
1b7501b7ea
@ -399,7 +399,7 @@ int main(int argc, char *argv[]) {
|
||||
CFG_STR("timezone", "", CFGF_NONE),
|
||||
CFG_STR("locale", "", CFGF_NONE),
|
||||
CFG_STR("format_time", NULL, CFGF_NONE),
|
||||
CFG_BOOL("only_when_tz_different", false, CFGF_NONE),
|
||||
CFG_BOOL("hide_if_equals_localtime", false, CFGF_NONE),
|
||||
CFG_CUSTOM_ALIGN_OPT,
|
||||
CFG_CUSTOM_MIN_WIDTH_OPT,
|
||||
CFG_CUSTOM_SEPARATOR_OPT,
|
||||
@ -756,7 +756,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
CASE_SEC_TITLE("tztime") {
|
||||
SEC_OPEN_MAP("tztime");
|
||||
print_time(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), cfg_getstr(sec, "locale"), cfg_getstr(sec, "format_time"), cfg_getbool(sec, "only_when_tz_different"), tv.tv_sec);
|
||||
print_time(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "timezone"), cfg_getstr(sec, "locale"), cfg_getstr(sec, "format_time"), cfg_getbool(sec, "hide_if_equals_localtime"), tv.tv_sec);
|
||||
SEC_CLOSE_MAP;
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ const char *first_eth_interface(const net_type_t type);
|
||||
void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, const char *format_down);
|
||||
void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format, const char *format_below_threshold, const char *format_not_mounted, const char *prefix_type, const char *threshold_type, const double low_threshold);
|
||||
void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, const char *format_down, const char *status_chr, const char *status_bat, const char *status_unk, const char *status_full, int low_threshold, char *threshold_type, bool last_full_capacity, bool integer_battery_capacity, bool hide_seconds);
|
||||
void print_time(yajl_gen json_gen, char *buffer, const char *title, const char *format, const char *tz, const char *locale, const char *format_time, bool only_when_tz_different, time_t t);
|
||||
void print_time(yajl_gen json_gen, char *buffer, const char *title, const char *format, const char *tz, const char *locale, const char *format_time, bool hide_if_equals_localtime, time_t t);
|
||||
void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t);
|
||||
const char *get_ip_addr(const char *interface, int family);
|
||||