Changing '--rate' option to type float, remove stringstream from argument scan

This correction to the previous commit leaves the <sstream> header in, because
std::stringstream has been using already before and the header was missing.
This commit is contained in:
Matthias Richter
2017-11-15 11:01:08 +01:00
committed by Mohammad Al-Turany
parent 9b2b1cf9f1
commit 2a134b9206
2 changed files with 3 additions and 3 deletions

View File

@@ -336,7 +336,7 @@ void FairMQProgOptions::FillOptionDescription(boost::program_options::options_de
("print-channels", po::value<bool >()->implicit_value(true), "Print registered channel endpoints in a machine-readable format (<channel name>:<min num subchannels>:<max num subchannels>)")
("shm-segment-size", po::value<size_t>()->default_value(2000000000), "shmem transport: size of the shared memory segment (in bytes).")
("shm-segment-name", po::value<string>()->default_value("fairmq_shmem_main"), "shmem transport: name of the shared memory segment.")
("rate", po::value<string>()->default_value(""), "rate for conditional run loop (Hz)")
("rate", po::value<float>()->default_value(0.), "rate for conditional run loop (Hz)")
;
}