Skip to content

Commit 308e096

Browse files
committed
Fix compute error.
1 parent 903d2df commit 308e096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/time/TimeUtils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class TimeUtils {
208208
static UnixTime unixTime() {
209209
::timespec ts;
210210
::clock_gettime(CLOCK_REALTIME, &ts);
211-
return UnixTime{ts.tv_sec, ::lround(ts.tv_nsec % 1000000)};
211+
return UnixTime{ts.tv_sec, ::lround(ts.tv_nsec / 1000000)};
212212
}
213213
}; // class TimeUtils
214214

0 commit comments

Comments
 (0)