From 6680cb64f130fbf027f35866cb78e24b99727a2a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 28 Mar 2012 07:38:35 +0000 Subject: [PATCH] * times.cc (clock_setres): Set minperiod to period. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/times.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 30fde01e3..e9a13f3d7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2012-03-28 Corinna Vinschen + + * times.cc (clock_setres): Set minperiod to period. + 2012-03-27 Corinna Vinschen * fhandler_process.cc (process_tab): Add entry for mountinfo. diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index a94911b08..e694d6875 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -823,7 +823,7 @@ clock_setres (clockid_t clk_id, struct timespec *tp) __seterrno_from_nt_status (status); return -1; } - minperiod = actual; + minperiod = period; period_set = true; return 0; }