Skip to content

Commit

Permalink
clockdiff: Fix missing new line
Browse files Browse the repository at this point in the history
Fixes: d6e1d77 ("clockdiff: get rid of ctime_r")

Reported-by:  mwgamera <mwgamera@gmail.com>
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
  • Loading branch information
pevik committed Jul 18, 2021
1 parent 1c9e796 commit 0e4ac00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clockdiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,10 @@ int main(int argc, char **argv)
localtime_r(&now, &tm);

if (ctl.time_format == time_format_iso) {
strftime(s, sizeof(s), "%Y-%m-%dT%H:%M:%S%z\n", &tm);
strftime(s, sizeof(s), "%Y-%m-%dT%H:%M:%S%z", &tm);
} else
strftime(s, sizeof(s), "%a %b %e %H:%M:%S %Y", &tm);
printf(_("\nhost=%s rtt=%ld(%ld)ms/%ldms delta=%dms/%dms %s"),
printf(_("\nhost=%s rtt=%ld(%ld)ms/%ldms delta=%dms/%dms %s\n"),
ctl.hisname, ctl.rtt, ctl.rtt_sigma, ctl.min_rtt,
ctl.measure_delta, ctl.measure_delta1, s);
} else
Expand Down

0 comments on commit 0e4ac00

Please sign in to comment.