diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ReceiverThreads/ReceiverThreads.cpp | 2 | ||||
-rw-r--r-- | src/main_server.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ReceiverThreads/ReceiverThreads.cpp b/src/ReceiverThreads/ReceiverThreads.cpp index e86fae5..688de00 100644 --- a/src/ReceiverThreads/ReceiverThreads.cpp +++ b/src/ReceiverThreads/ReceiverThreads.cpp @@ -162,7 +162,7 @@ auto ReceiverThreads::receiverThread(const int port) -> void { auto ts = std::chrono::high_resolution_clock::now(); std::chrono::nanoseconds d = ts - ts_last; if (d.count() >= 1000000000) { - printf("Lost %.2lf%, Received: %i (%zu bytes, %.3lf GBit/s) in %.3lf ms [VMA: %i]\n", loss / (double)(lastIndex - rcv_index)*100.0, rcv_packets, rcv_size, 8. * rcv_size * coef / d.count() , 1. * d.count() / 1000000, (vma_?1:0)); + printf("Lost %.2lf%, Received: %i (%zu bytes, %.3lf GBit/s) in %.3lf ms [VMA: %i, port: %i]\n", loss / (double)(lastIndex - rcv_index)*100.0, rcv_packets, rcv_size, 8. * rcv_size * coef / d.count() , 1. * d.count() / 1000000, (vma_?1:0), port); rcv_packets = 0; rcv_size = 0; rcv_index = lastIndex; diff --git a/src/main_server.cpp b/src/main_server.cpp index 7c6cee4..2e248e1 100644 --- a/src/main_server.cpp +++ b/src/main_server.cpp @@ -2,6 +2,7 @@ #include "ReceiverThreads/ReceiverThreads.h" #include <iostream> +#include <functional> #include <string> #include <thread> |