| 871 | } |
| 872 | |
| 873 | static void ui_log_add_int(ui_log_scratch_t *s, int *pos, const char *key, yyjson_val *v) { |
| 874 | if (!v || !yyjson_is_num(v)) |
| 875 | return; |
| 876 | http_appendf(s->line, sizeof(s->line), pos, ",\"%s\":%lld", key, (long long)yyjson_get_sint(v)); |
| 877 | } |
| 878 | |
| 879 | static void ui_log_utc_now(char *out, size_t outsz) { |
| 880 | time_t now = time(NULL); |
no test coverage detected