Skip to content

Commit

Permalink
Merge pull request #156 from Naoki-Hiraoka/PR-periodic
Browse files Browse the repository at this point in the history
[server/ModelLoader/projectGenerator.cpp] write peridoic.rate to conf file
  • Loading branch information
fkanehiro authored Jun 21, 2021
2 parents dcfefbc + 02de07c commit 2bfbea7
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 2bfbea7

Please sign in to comment.