mirror of
https://github.com/gnustep/libs-performance.git
synced 2025-02-22 19:31:10 +00:00
Fix calculation of the timeout for a cooperating get or put (it was multiplied by 1000 where
it should have been divided by 1000) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@37362 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c75a6a8231
commit
3452f1309c
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-11-05 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* GSFIFO.m: Fix calculation of the timeout for cooperating
|
||||
get/put.
|
||||
|
||||
2013-08-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* GSFIFO.m: 64bit printf format changes
|
||||
|
|
4
GSFIFO.m
4
GSFIFO.m
|
@ -155,7 +155,7 @@ stats(NSTimeInterval ti, uint32_t max, NSTimeInterval *bounds, uint64_t *bands)
|
|||
NSDate *d;
|
||||
|
||||
d = [[NSDateClass alloc]
|
||||
initWithTimeIntervalSinceNow: 1000.0 * timeout];
|
||||
initWithTimeIntervalSinceNow: timeout / 1000.0f];
|
||||
while (_head - _tail == 0)
|
||||
{
|
||||
if (NO == [condition waitUntilDate: d])
|
||||
|
@ -231,7 +231,7 @@ stats(NSTimeInterval ti, uint32_t max, NSTimeInterval *bounds, uint64_t *bands)
|
|||
NSDate *d;
|
||||
|
||||
d = [[NSDateClass alloc]
|
||||
initWithTimeIntervalSinceNow: 1000.0 * timeout];
|
||||
initWithTimeIntervalSinceNow: timeout / 1000.0f];
|
||||
while (_head - _tail == _capacity)
|
||||
{
|
||||
if (NO == [condition waitUntilDate: d])
|
||||
|
|
Loading…
Reference in a new issue