summaryrefslogtreecommitdiffstats
path: root/srUtils.c
diff options
context:
space:
mode:
Diffstat (limited to 'srUtils.c')
-rwxr-xr-xsrUtils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/srUtils.c b/srUtils.c
index efcd7e6d..3d30f5a2 100755
--- a/srUtils.c
+++ b/srUtils.c
@@ -321,12 +321,16 @@ timeoutComp(struct timespec *pt, long iTimeout)
assert(pt != NULL);
/* compute timeout */
clock_gettime(CLOCK_REALTIME, pt);
+RUNLOG_VAR("%ld", pt->tv_nsec);
pt->tv_nsec += (iTimeout % 1000) * 1000000; /* think INTEGER arithmetic! */
+RUNLOG_VAR("%ld", pt->tv_nsec);
if(pt->tv_nsec > 999999999) { /* overrun? */
+RUNLOG;
pt->tv_nsec -= 1000000000;
- ++pt->tv_sec;
}
+RUNLOG_VAR("%ld", pt->tv_sec);
pt->tv_sec += iTimeout / 1000;
+RUNLOG_VAR("%ld", pt->tv_sec);
return RS_RET_OK; /* so far, this is static... */
}