diff options
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 3fdab13aa..4f4c39c92 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -718,7 +718,7 @@ hires_ns::resolution () return (long long) -1; } - return (LONGLONG) freq; + return (freq <= 1.0) ? 1LL : (LONGLONG) freq; } UINT |