]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Correct missing leading zeros in sntp tv_usec display from tv_to_str().
authorDave Hart <hart@ntp.org>
Tue, 9 Nov 2010 06:01:12 +0000 (06:01 +0000)
committerDave Hart <hart@ntp.org>
Tue, 9 Nov 2010 06:01:12 +0000 (06:01 +0000)
bk: 4cd8e3a8ZKRlj8ayEb3ULkzHK0qIUw

sntp/utilities.c

index 23d957f3c0115ca83127f336089809f3dcb2bdce..f8588cff232b35f8babd3a2680721dac6c8ca11b 100644 (file)
@@ -159,7 +159,7 @@ tv_to_str (
        tm_ptr = localtime(&cur_time);
 
 
-       snprintf(buf, 48, "%i %s %.2d %.2d:%.2d:%.2d.%.3d", 
+       snprintf(buf, 48, "%i %s %.2d %.2d:%.2d:%.2d.%.6d", 
                        tm_ptr->tm_year + 1900,
                        month_names[tm_ptr->tm_mon],
                        tm_ptr->tm_mday,