A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Taking in account the fact that some resource may have no action terminated.
[simgrid.git]
/
src
/
surf
/
surf.c
diff --git
a/src/surf/surf.c
b/src/surf/surf.c
index
41648de
..
8d6ce0c
100644
(file)
--- a/
src/surf/surf.c
+++ b/
src/surf/surf.c
@@
-114,7
+114,7
@@
xbt_heap_float_t surf_solve(void)
xbt_dynar_foreach (resource_list,i,resource) {
resource_next_action_end = resource->common_private->share_resources(NOW);
xbt_dynar_foreach (resource_list,i,resource) {
resource_next_action_end = resource->common_private->share_resources(NOW);
- if((
min<0) || (resource_next_action_end<min))
+ if((
(min<0.0) || (resource_next_action_end<min)) && (resource_next_action_end>=0.0))
min = resource_next_action_end;
}
min = resource_next_action_end;
}