mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* times.cc (hires_ns::resolution): Don't return less than 1.
This commit is contained in:
parent
8cb58e8566
commit
74365d9715
@ -1,3 +1,7 @@
|
||||
2011-12-13 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* times.cc (hires_ns::resolution): Don't return less than 1.
|
||||
|
||||
2011-12-12 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
* cygthread.h (cygthread::name): Very minor formatting tweak.
|
||||
|
@ -718,7 +718,7 @@ hires_ns::resolution ()
|
||||
return (long long) -1;
|
||||
}
|
||||
|
||||
return (LONGLONG) freq;
|
||||
return (freq <= 1.0) ? 1LL : (LONGLONG) freq;
|
||||
}
|
||||
|
||||
UINT
|
||||
|
Loading…
x
Reference in New Issue
Block a user