2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Change dnstap-read timestamp to millis

This commit is contained in:
Oliver Ford
2023-04-02 18:50:57 +01:00
committed by Matthijs Mekking
parent 15abca01d4
commit 2e85d9faaa

View File

@@ -231,13 +231,13 @@ print_yaml(dns_dtdata_t *dt) {
if (!isc_time_isepoch(&dt->qtime)) { if (!isc_time_isepoch(&dt->qtime)) {
char buf[100]; char buf[100];
isc_time_formatISO8601(&dt->qtime, buf, sizeof(buf)); isc_time_formatISO8601ms(&dt->qtime, buf, sizeof(buf));
printf(" query_time: !!timestamp %s\n", buf); printf(" query_time: !!timestamp %s\n", buf);
} }
if (!isc_time_isepoch(&dt->rtime)) { if (!isc_time_isepoch(&dt->rtime)) {
char buf[100]; char buf[100];
isc_time_formatISO8601(&dt->rtime, buf, sizeof(buf)); isc_time_formatISO8601ms(&dt->rtime, buf, sizeof(buf));
printf(" response_time: !!timestamp %s\n", buf); printf(" response_time: !!timestamp %s\n", buf);
} }