diff options
author | Eric Blake <eblake@redhat.com> | 2009-12-19 03:58:34 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2009-12-19 03:58:34 +0300 |
commit | d954168ddbeb359a13a7afef082cbece33b289c0 (patch) | |
tree | 603e977e65810327a4c9a610e022bff649577166 /winsup/cygwin/signal.cc | |
parent | f16706de978322fb69a39bae0dd817fb2fdaeaf2 (diff) |
* signal.cc (nanosleep): Fix bug in previous patch.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 63267da0c..e12f63e2d 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -102,11 +102,11 @@ nanosleep (const struct timespec *rqtp, struct timespec *rmtp) { /* Divide user's input into transactions no larger than 49.7 days at a time. */ - if (sec > HIRES_DELAY_MAX) + if (sec > HIRES_DELAY_MAX / 1000) { - req = ((HIRES_DELAY_MAX * 1000 + resolution - 1) + req = ((HIRES_DELAY_MAX + resolution - 1) / resolution * resolution); - sec -= HIRES_DELAY_MAX; + sec -= HIRES_DELAY_MAX / 1000; } else { |