xF: reuse a function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user