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
kill two empty files
[simgrid.git]
/
src
/
simdag
/
sd_link.c
diff --git
a/src/simdag/sd_link.c
b/src/simdag/sd_link.c
index
e147c42
..
7f5da90
100644
(file)
--- a/
src/simdag/sd_link.c
+++ b/
src/simdag/sd_link.c
@@
-1,15
+1,14
@@
-/* Copyright (c) 2006-201
2
. The SimGrid Team.
+/* Copyright (c) 2006-201
4
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.h"
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.h"
-#include "sim
dag
/simdag.h"
+#include "sim
grid
/simdag.h"
#include "xbt/dict.h"
#include "xbt/sysdep.h"
#include "surf/surf.h"
#include "xbt/dict.h"
#include "xbt/sysdep.h"
#include "surf/surf.h"
-#include "surf/surf_resource.h"
/* Creates a link and registers it in SD.
/* Creates a link and registers it in SD.
@@
-23,7
+22,7
@@
SD_link_t __SD_link_create(void *surf_link, void *data)
link = xbt_new(s_SD_link_t, 1);
link->surf_link = surf_link;
link->data = data; /* user data */
link = xbt_new(s_SD_link_t, 1);
link->surf_link = surf_link;
link->data = data; /* user data */
- if (surf_
workstation_model->extension.workstation.link
_shared(surf_link))
+ if (surf_
network_link_is
_shared(surf_link))
link->sharing_policy = SD_LINK_SHARED;
else
link->sharing_policy = SD_LINK_FATPIPE;
link->sharing_policy = SD_LINK_SHARED;
else
link->sharing_policy = SD_LINK_FATPIPE;
@@
-118,8
+117,7
@@
const char *SD_link_get_name(SD_link_t link)
*/
double SD_link_get_current_bandwidth(SD_link_t link)
{
*/
double SD_link_get_current_bandwidth(SD_link_t link)
{
- return surf_workstation_model->extension.workstation.
- get_link_bandwidth(link->surf_link);
+ return surf_network_link_get_bandwidth(link->surf_link);
}
/**
}
/**
@@
-130,8
+128,7
@@
double SD_link_get_current_bandwidth(SD_link_t link)
*/
double SD_link_get_current_latency(SD_link_t link)
{
*/
double SD_link_get_current_latency(SD_link_t link)
{
- return surf_workstation_model->extension.workstation.
- get_link_latency(link->surf_link);
+ return surf_network_link_get_latency(link->surf_link);
}
/**
}
/**