Skip to content
Snippets Groups Projects
Commit 8baae119 authored by Florian Fischer's avatar Florian Fischer
Browse files

[Debug] fix nanos in log timestamp

The timestamp consists of <hour><minutes>.<nanos> but the calculation of
the nanos in the current minute was broken.
A minute are 60 * 10^9 nanoseconds and not 10^9.
parent 596046f6
No related branches found
No related tags found
1 merge request!242[Debug] fix nanos in log timestamp
......@@ -33,7 +33,7 @@ void emper_add_timestamp_to(std::ostringstream& logMessage) {
auto time_since_epoch = now_nanos.time_since_epoch();
long time_since_epoch_long = time_since_epoch.count();
long remaining_nanos = time_since_epoch_long % 1000000000;
long remaining_nanos = time_since_epoch_long % 60000000000;
logMessage << remaining_nanos;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment