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
Survive NULL datadesc in datadesc_get_name; change the prototype of this function...
[simgrid.git]
/
src
/
surf
/
trace_mgr.c
diff --git
a/src/surf/trace_mgr.c
b/src/surf/trace_mgr.c
index
b61bac0
..
fd1e6b7
100644
(file)
--- a/
src/surf/trace_mgr.c
+++ b/
src/surf/trace_mgr.c
@@
-141,7
+141,6
@@
tmgr_trace_event_t tmgr_history_add_trace(tmgr_history_t h,
{
tmgr_trace_event_t trace_event = NULL;
-
trace_event = xbt_new0(s_tmgr_trace_event_t, 1);
trace_event->trace = trace;
trace_event->idx = offset;
@@
-168,7
+167,7
@@
tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t h,
double *value,
void **resource)
{
- double event_date =
xbt_heap_maxkey(h->heap
);
+ double event_date =
tmgr_history_next_date(h
);
tmgr_trace_event_t trace_event = NULL;
tmgr_event_t event = NULL;
tmgr_trace_t trace = NULL;
@@
-182,7
+181,6
@@
tmgr_trace_event_t tmgr_history_get_next_event_leq(tmgr_history_t h,
trace = trace_event->trace;
event = xbt_dynar_get_ptr(trace->event_list, trace_event->idx);
-
*value = event->value;
*resource = trace_event->resource;