Skip to content

Commit

Permalink
[server/ModelLoader/projectGenerator.cpp] write peridoic.rate to conf…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
Naoki-Hiraoka committed Jun 20, 2021
1 parent 5efda83 commit 02de07c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/ModelLoader/projectGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ int main (int argc, char** argv)
std::fstream s(conf_file.c_str(), std::ios::out);

s << "model: file://" << filenames[0] << std::endl;
s << "exec_cxt.periodic.rate: " << static_cast<size_t>(1/atof(dt.c_str())+0.5) << std::endl; // rounding to specify integer rate value
s << "dt: " << dt << std::endl;
s << conf_file_option << std::endl;
std::cerr << "Writing conf files to ....... " << conf_file << std::endl;
Expand Down

0 comments on commit 02de07c

Please sign in to comment.