@@ -154,6 +154,6 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -173,6 +173,6 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -171,7 +171,7 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -173,6 +173,6 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -174,6 +174,6 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -175,6 +175,6 @@ main(int argc, char **argv)
return 1;
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
return 0;
}
@@ -206,7 +206,7 @@ int main(int argc, char *argv[])
total = timespec_add(total, timespec_sub(end, start));
}
- printf("%ld.%ld\n", total.tv_sec, total.tv_nsec);
+ printf("%ld.%09ld\n", total.tv_sec, total.tv_nsec);
kill_children();
return 0;
}
The total time used for a test is a bit 'hard to read, because leading zeros for the nsec part are missing, e.g. total.tv_sec = 1 total.tv_nsec = 40013 results in 1.40013 instead of 1.000040013 Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de> --- flock01.c | 2 +- flock02.c | 2 +- lease01.c | 2 +- lease02.c | 2 +- posix01.c | 2 +- posix02.c | 2 +- posix03.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)