summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30bd644)
raw | patch | inline | side by side (parent: 30bd644)
author | octo <octo> | |
Sat, 29 Apr 2006 12:06:37 +0000 (12:06 +0000) | ||
committer | octo <octo> | |
Sat, 29 Apr 2006 12:06:37 +0000 (12:06 +0000) |
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index c2dd2694a1c2e8d24e350f91af8324dffec9fa07..457a09d226fbe9ceff83d07647ca7edcfdebcec0 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
double temp_sec;
double temp_nsec;
- temp_sec = modf (opt_interval, &temp_nsec);
+ temp_nsec = modf (opt_interval, &temp_sec);
ts_int.tv_sec = (time_t) temp_sec;
ts_int.tv_nsec = (long) (temp_nsec * 1000000000L);
+
+ /* printf ("ts_int = %i.%09li\n", (int) ts_int.tv_sec, ts_int.tv_nsec); */
}
if (opt_addrfamily != PING_DEF_AF)
time_calc (&ts_wait, &ts_int, &tv_begin, &tv_end);
+ /* printf ("Sleeping for %i.%09li seconds\n", (int) ts_wait.tv_sec, ts_wait.tv_nsec); */
while ((status = nanosleep (&ts_wait, &ts_wait)) != 0)
{
if (errno != EINTR)