Skip to content

Commit

Permalink
Use user-provided timestasmp format string specifier for errors.
Browse files Browse the repository at this point in the history
This change provides consistent behavior relative to more routine
(non-error) timestamped output.
  • Loading branch information
bmah888 committed Jun 27, 2024
1 parent 4c7629f commit 33838da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iperf_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ iperf_errexit(struct iperf_test *test, const char *format, ...)
if (test != NULL && test->timestamps) {
time(&now);
ltm = localtime(&now);
strftime(iperf_timestrerr, sizeof(iperf_timestrerr), "%Y-%m-%d %H:%M:%S", ltm);
strftime(iperf_timestrerr, sizeof(iperf_timestrerr), iperf_get_test_timestamp_format(test), ltm);
ct = iperf_timestrerr;
}

Expand Down

0 comments on commit 33838da

Please sign in to comment.