summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c02cb43)
Don't drop zeros following the decimal point.
while (read(fd, &i, sizeof(i)) == sizeof(i)) {
if (i.type == 1 && i.value == 1) {
if (print_usec) {
while (read(fd, &i, sizeof(i)) == sizeof(i)) {
if (i.type == 1 && i.value == 1) {
if (print_usec) {
- printf("%ld.%ld\n", i.time.tv_sec, i.time.tv_usec);
+ printf("%ld.%06ld\n", i.time.tv_sec, i.time.tv_usec);
} else {
printf("%ld\n", i.time.tv_sec);
}
} else {
printf("%ld\n", i.time.tv_sec);
}