Commit e016f53f authored by Claes Sjofors's avatar Claes Sjofors

Conversion from net time was missing

parent 74440357
......@@ -1447,7 +1447,11 @@ void *rtt_logging_logproc( void *arg)
#if defined OS_LYNX || defined OS_LINUX
time_GetTime( &time);
time_Adiff( &wait_time, &nextime, &time);
nanosleep( (struct timespec *) &wait_time, NULL);
struct timespec wait_time_ts;
wait_time_ts.tv_sec = wait_time.tv_sec;
wait_time_ts.tv_nsec = wait_time.tv_nsec;
nanosleep( &wait_time_ts, NULL);
#endif
continue;
}
......@@ -1870,7 +1874,11 @@ void *rtt_logging_logproc( void *arg)
#endif
#if defined OS_LYNX || defined OS_LINUX
time_Adiff( &wait_time, &nextime, &time);
nanosleep( (struct timespec *) &wait_time, NULL);
struct timespec wait_time_ts;
wait_time_ts.tv_sec = wait_time.tv_sec;
wait_time_ts.tv_nsec = wait_time.tv_nsec;
nanosleep( &wait_time_ts, NULL);
#endif
}
......
......@@ -923,7 +923,11 @@ static void *xtt_logproc( void *arg)
#if defined OS_LYNX || defined OS_LINUX
time_GetTime( &time);
time_Adiff( &wait_time, &nextime, &time);
nanosleep( (struct timespec *) &wait_time, NULL);
struct timespec wait_time_ts;
wait_time_ts.tv_sec = wait_time.tv_sec;
wait_time_ts.tv_nsec = wait_time.tv_nsec;
nanosleep( &wait_time_ts, NULL);
#endif
continue;
}
......@@ -1337,7 +1341,11 @@ static void *xtt_logproc( void *arg)
#endif
#if defined OS_LYNX || defined OS_LINUX
time_Adiff( &wait_time, &nextime, &time);
nanosleep( (struct timespec *) &wait_time, NULL);
struct timespec wait_time_ts;
wait_time_ts.tv_sec = wait_time.tv_sec;
wait_time_ts.tv_nsec = wait_time.tv_nsec;
nanosleep( &wait_time_ts, NULL);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment