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
gosh, sonar still chokes on this single function. Better now?
[simgrid.git]
/
src
/
kernel
/
activity
/
SynchroComm.cpp
diff --git
a/src/kernel/activity/SynchroComm.cpp
b/src/kernel/activity/SynchroComm.cpp
index
532c591
..
c08a493
100644
(file)
--- a/
src/kernel/activity/SynchroComm.cpp
+++ b/
src/kernel/activity/SynchroComm.cpp
@@
-74,14
+74,11
@@
void simgrid::kernel::activity::Comm::cancel()
/** @brief get the amount remaining from the communication */
double simgrid::kernel::activity::Comm::remains()
{
/** @brief get the amount remaining from the communication */
double simgrid::kernel::activity::Comm::remains()
{
- switch (state) {
-
- case SIMIX_RUNNING:
+ if (state == SIMIX_RUNNING)
return surf_comm->getRemains();
return surf_comm->getRemains();
- default:
- return 0; /*FIXME: check what should be returned */
- }
+ /* FIXME: check what should be returned in the other cases */
+ return 0;
}
/** @brief This is part of the cleanup process, probably an internal command */
}
/** @brief This is part of the cleanup process, probably an internal command */