Back to the main page.

Bug 548 - incorrect timreq update

Status CLOSED FIXED
Reported 2011-03-25 14:01:00 +0100
Modified 2011-03-31 14:13:55 +0200
Product: FieldTrip
Component: peer
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Marcel Zwiers - 2011-03-25 14:01:19 +0100

Around line 394 the variable 'elapsed' is wrongly calculated. The current code: if any(submitted) && any(busy) % update based on the time already spent on the slowest job elapsed = toc(stopwatch) - min(submittime(submitted(busy))); timreq = max(timreq, elapsed); timreq = max(timreq, mintimreq); end submitted and busy are both boleans, which does not rightly select the desired indices of submittime. Instead you could use: [...] elapsed = toc(stopwatch) - min(submittime(submitted & busy)); [...]


Robert Oostenveld - 2011-03-31 14:01:56 +0200

fixed according to suggestion Sending peercellfun.m Transmitting file data . Committed revision 3257.


Robert Oostenveld - 2011-03-31 14:13:55 +0200

changed the status of most recently resolved/fixed bugs into "CLOSED"