We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903d2df commit 308e096Copy full SHA for 308e096
src/common/time/TimeUtils.h
@@ -208,7 +208,7 @@ class TimeUtils {
208
static UnixTime unixTime() {
209
::timespec ts;
210
::clock_gettime(CLOCK_REALTIME, &ts);
211
- return UnixTime{ts.tv_sec, ::lround(ts.tv_nsec % 1000000)};
+ return UnixTime{ts.tv_sec, ::lround(ts.tv_nsec / 1000000)};
212
}
213
}; // class TimeUtils
214
0 commit comments