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
[sonar] Explicit cast when loosing precision (C++ examples).
[simgrid.git]
/
examples
/
s4u
/
comm-wait
/
s4u-comm-wait.cpp
diff --git
a/examples/s4u/comm-wait/s4u-comm-wait.cpp
b/examples/s4u/comm-wait/s4u-comm-wait.cpp
index
4e7ee1a
..
1664f4b
100644
(file)
--- a/
examples/s4u/comm-wait/s4u-comm-wait.cpp
+++ b/
examples/s4u/comm-wait/s4u-comm-wait.cpp
@@
-22,7
+22,7
@@
static void sender(int argc, char** argv)
{
xbt_assert(argc == 3, "Expecting 2 parameters from the XML deployment file but got %d", argc);
long messages_count = std::stol(argv[1]); /* - number of messages */
-
double msg_size = std::stod
(argv[2]); /* - message size in bytes */
+
long msg_size = std::stol
(argv[2]); /* - message size in bytes */
double sleep_start_time = 5.0;
double sleep_test_time = 0;