Message ID | 20220209222610.438470-4-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dbench: fix compile warnings and update a bit | expand |
diff --git a/dbench.c b/dbench.c index c8f2fee..ca29373 100644 --- a/dbench.c +++ b/dbench.c @@ -496,7 +496,7 @@ static void process_opts(int argc, const char **argv) int main(int argc, const char *argv[]) { double total_bytes = 0; - double t, latency=0; + double latency=0; int i; setlinebuf(stdout); @@ -568,8 +568,6 @@ static void process_opts(int argc, const char **argv) latency = MAX(latency, children[i].worst_latency); } - t = timeval_elapsed2(&tv_start, &tv_end); - if (options.machine_readable) { printf(";%g;%d;%d;%.03f;\n", throughput,
The value is not used. Nuke it. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> --- dbench.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)