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
[trace] fixing identation
[simgrid.git]
/
src
/
surf
/
cpu_im.c
diff --git
a/src/surf/cpu_im.c
b/src/surf/cpu_im.c
index
229c84d
..
11b9aaa
100644
(file)
--- a/
src/surf/cpu_im.c
+++ b/
src/surf/cpu_im.c
@@
-343,23
+343,23
@@
static void cpu_im_update_actions_state(double now, double delta)
{
//defining the last timestamp that we can safely dump to trace file
//without losing the event ascending order (considering all CPU's)
-
void **data;
+ void **data;
cpu_Cas01_im_t cpu;
xbt_lib_cursor_t cursor;
char *key;
double smaller = -1;
xbt_lib_foreach(host_lib, cursor, key, data){
-
if(data[SURF_CPU_LEVEL]){
-
cpu = data[SURF_CPU_LEVEL];
-
if (smaller < 0){
-
smaller = cpu->last_update;
-
continue;
-
}
-
if (cpu->last_update < smaller){
-
smaller = cpu->last_update;
-
}
-
}
- }
+ if(data[SURF_CPU_LEVEL]){
+ cpu = data[SURF_CPU_LEVEL];
+ if (smaller < 0){
+ smaller = cpu->last_update;
+ continue;
+ }
+ if (cpu->last_update < smaller){
+ smaller = cpu->last_update;
+ }
+ }
+
}
if (smaller > 0) {
TRACE_last_timestamp_to_dump = smaller;
}