aboutsummaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-03-08 11:49:43 +0100
committerThomas Schwinge <thomas@codesourcery.com>2012-03-08 11:49:43 +0100
commit82d86f28445f3231f7f9e94ac6678065ab476a8e (patch)
treeb2833b3156fb0d99075f8f19e484c98026b341f9 /rt
parentWork around kernel rejecting valid absolute timestamps. (diff)
downloadglibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.tar.gz
glibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.tar.bz2
glibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.zip
Fix struct timespec normalization (as used in many other places).
Diffstat (limited to 'rt')
-rw-r--r--rt/tst-cpuclock2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rt/tst-cpuclock2.c b/rt/tst-cpuclock2.c
index e3545f2e3c..9a74eb014b 100644
--- a/rt/tst-cpuclock2.c
+++ b/rt/tst-cpuclock2.c
@@ -110,7 +110,7 @@ test_nanosleep (clockid_t clock, const char *which,
struct timespec sleeptimeabs = sleeptime;
sleeptimeabs.tv_sec += after.tv_sec;
sleeptimeabs.tv_nsec += after.tv_nsec;
- while (sleeptimeabs.tv_nsec > 1000000000)
+ while (sleeptimeabs.tv_nsec >= 1000000000)
{
++sleeptimeabs.tv_sec;
sleeptimeabs.tv_nsec -= 1000000000;