From fa7a8dac30087d63e0c99b46ed6b0370d86304a8 Mon Sep 17 00:00:00 2001 From: "Frust, Tobias (FWCC) - 111645" Date: Fri, 3 Nov 2017 08:46:48 +0100 Subject: bug fixes --- src/main_client.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main_client.cpp') diff --git a/src/main_client.cpp b/src/main_client.cpp index e97e911..38c065d 100644 --- a/src/main_client.cpp +++ b/src/main_client.cpp @@ -20,13 +20,13 @@ void initLog() { int main (int argc, char *argv[]){ if(argc < 3){ - BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorClient !"; + BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorClient
!"; return 0; } int imagesPerSec = std::stoi(argv[1]); - int packetSize = std::stoi(argv[2]); + std::string address = argv[2]; double timegap = 1./(double)imagesPerSec; unsigned int intervall = timegap*1000*1000; @@ -36,9 +36,8 @@ int main (int argc, char *argv[]){ std::cout << "Sending UDP packages: " << std::endl; auto configPath = std::string { "config.cfg" }; - std::string address = "10.0.0.10"; - - Detector detector{address, configPath, intervall, packetSize}; + + Detector detector{address, configPath, intervall}; //DetectorModule detModule0 = DetectorModule(1, address, configPath); -- cgit v1.2.3