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:
thebeing 2013-11-05 10:15:00 +00:00
parent c75a6a8231
commit 3452f1309c
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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])