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
Use printf format %f instead of %e for this example.
[simgrid.git]
/
teshsuite
/
xbt
/
graphxml_usage
/
graphxml_usage.c
diff --git
a/teshsuite/xbt/graphxml_usage/graphxml_usage.c
b/teshsuite/xbt/graphxml_usage/graphxml_usage.c
index
7c4fe73
..
2a1f6f0
100644
(file)
--- a/
teshsuite/xbt/graphxml_usage/graphxml_usage.c
+++ b/
teshsuite/xbt/graphxml_usage/graphxml_usage.c
@@
-80,7
+80,7
@@
void test(char *graph_file)
buf = xbt_new0(char, n * 20);
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
buf = xbt_new0(char, n * 20);
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
- sprintf(buf + strlen(buf), "%
e
\t", adj[i * n + j]);
+ sprintf(buf + strlen(buf), "%
6.3f
\t", adj[i * n + j]);
}
XBT_INFO("%s", buf);
buf[0] = '\000';
}
XBT_INFO("%s", buf);
buf[0] = '\000';