summaryrefslogtreecommitdiffstats
path: root/src/resperf.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:45:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:45:26 +0000
commit0453729001ba00f7ffa96f154bb77bd649b497a2 (patch)
tree2e975b1d1be0e2de8b633fabf9872602177b2643 /src/resperf.c
parentAdding upstream version 2.9.0. (diff)
downloaddnsperf-0453729001ba00f7ffa96f154bb77bd649b497a2.tar.xz
dnsperf-0453729001ba00f7ffa96f154bb77bd649b497a2.zip
Adding upstream version 2.10.0.upstream/2.10.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/resperf.c')
-rw-r--r--src/resperf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resperf.c b/src/resperf.c
index ac41b38..aa58dc0 100644
--- a/src/resperf.c
+++ b/src/resperf.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2019-2021 OARC, Inc.
+ * Copyright 2019-2022 OARC, Inc.
* Copyright 2017-2018 Akamai Technologies
* Copyright 2006-2016 Nominum, Inc.
* All rights reserved.
@@ -401,7 +401,7 @@ static void setup(int argc, char** argv)
perf_net_parselocal(server_addr.sa.sa.sa_family, local_name,
local_port, &local_addr);
- input = perf_datafile_open(filename);
+ input = perf_datafile_open(filename, input_format_text_query);
if (reopen_datafile) {
perf_datafile_setmaxruns(input, -1);
}
@@ -635,7 +635,7 @@ do_one_line(perf_buffer_t* lines, perf_buffer_t* msg)
}
perf_buffer_clear(lines);
- result = perf_datafile_next(input, lines, false);
+ result = perf_datafile_next(input, lines);
if (result != PERF_R_SUCCESS)
perf_log_fatal("ran out of query data");
perf_buffer_usedregion(lines, &used);