Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug fix. The date given when updating the state of a resource was incorrect. It could...
authorArnaud Legrand <arnaud.legrand@imag.fr>
Mon, 4 Feb 2013 13:01:18 +0000 (14:01 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 4 Feb 2013 16:57:14 +0000 (17:57 +0100)
src/surf/surf.c

index 6b03d70..8a1b6dd 100644 (file)
@@ -629,7 +629,7 @@ double surf_solve(double max_date)
              resource->model->name, min);
       resource->model->model_private->update_resource_state(resource,
                                                             event, value,
              resource->model->name, min);
       resource->model->model_private->update_resource_state(resource,
                                                             event, value,
-                                                            NOW + min);
+                                                            next_event_date);
     }
   } while (1);
 
     }
   } while (1);