summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Frust <tobiasfrust@gmail.com>2016-07-22 08:15:26 +0200
committerTobias Frust <tobiasfrust@gmail.com>2016-07-22 08:15:26 +0200
commit9199713922540eabf475a76ff0bb8344a478391d (patch)
tree8347694e3d714e4c00aad7ea0f61dc8712b992e0 /src
parentebcd23f3d86976fbfe2768d3ee0925db2cff773a (diff)
downloadods-9199713922540eabf475a76ff0bb8344a478391d.tar.gz
ods-9199713922540eabf475a76ff0bb8344a478391d.tar.bz2
ods-9199713922540eabf475a76ff0bb8344a478391d.tar.xz
ods-9199713922540eabf475a76ff0bb8344a478391d.zip
corrected percentage calculation
Diffstat (limited to 'src')
-rw-r--r--src/ReceiverThreads/ReceiverThreads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ReceiverThreads/ReceiverThreads.cpp b/src/ReceiverThreads/ReceiverThreads.cpp
index a99467a..3d22c66 100644
--- a/src/ReceiverThreads/ReceiverThreads.cpp
+++ b/src/ReceiverThreads/ReceiverThreads.cpp
@@ -44,6 +44,6 @@ auto ReceiverThreads::receiverThread(const int port) -> void {
}
lastIndex = index;
}
- BOOST_LOG_TRIVIAL(info) << "Lost " << loss_ << " from " << lastIndex << " packets; (" << loss_/(double)lastIndex << "%)";
+ BOOST_LOG_TRIVIAL(info) << "Lost " << loss_ << " from " << lastIndex << " packets; (" << loss_/(double)lastIndex*100.0 << "%)";
}