fix toTimespec

This commit is contained in:
2020-09-25 14:13:36 +03:00
parent c3f0cc0b03
commit b6583c3d02

View File

@@ -214,8 +214,8 @@ PIDateTime PIDateTime::current() {
void PISystemTime::toTimespec(void * ts) {
#ifndef WINDOWS
t_cur->tv_sec = seconds;
t_cur->tv_nsec = nanoseconds;
ts->tv_sec = seconds;
ts->tv_nsec = nanoseconds;
#endif
}