summaryrefslogtreecommitdiffstats
path: root/mmss/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmss/network.cpp')
-rw-r--r--mmss/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mmss/network.cpp b/mmss/network.cpp
index ae1dc3c..9eb3b3a 100644
--- a/mmss/network.cpp
+++ b/mmss/network.cpp
@@ -38,10 +38,10 @@ float network_t::get_etx() const {
if (etx_min == etx_max)
return etx_min;
- float val = float(std::sin(2*M_PI * (mmss->now()/1000.0 - phase)/period));
+ float val = float(std::sin(2*M_PI * (mmss->now()/1000.0 + phase)/period));
float diff = etx_max - etx_min;
- mmss->logf(LOG_DEBUG, "ETX: %.3f", etx_min + diff * (val+1)/2);
+ mmss->logf(LOG_DEBUG, "ETX for `%s' is %.3f now", name.c_str(), etx_min + diff * (val+1)/2);
return etx_min + diff * (val+1)/2;
}