xF: reuse a function

This commit is contained in:
2026-08-07 16:10:53 +02:00
parent 087091577c
commit 3275cd1fa2
+1 -3
View File
@@ -767,9 +767,7 @@ app_flush_local_lines (void)
static void
app_queue_local_line (enum relay_rendition rendition, const char *text)
{
struct timespec tp = {};
hard_assert (clock_gettime (CLOCK_REALTIME, &tp) != -1);
uint64_t when = (uint64_t) tp.tv_sec * 1000 + tp.tv_nsec / 1000000;
int64_t when = clock_msec (CLOCK_REALTIME);
struct buffer_line *line = xcalloc (1, sizeof *line);
line->rendition = rendition;