Commit 38a25f41 authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Fix writing of milliseconds in output file

parent b291ed76
......@@ -131,10 +131,10 @@ int String_Parser::string(std::string &string, data_obs *data) {
break;
case 'M': {
// Get number of characters to write
int len = snprintf(c, 1, sel.c_str(), data->get_msec());
int len = snprintf(c, 1, sel.c_str(), data->get_msec()/1e6);
// Write the milliseconds
char buffer[len + 1] = "";
snprintf(buffer, len + 1, sel.c_str(), data->get_msec());
snprintf(buffer, len + 1, sel.c_str(), data->get_msec()/1e6);
os << buffer;
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment