fix toTimespec 2

This commit is contained in:
2020-09-25 14:15:46 +03:00
parent b6583c3d02
commit b771eebfbb

View File

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