fix toTimespec

This commit is contained in:
2020-09-25 14:17:58 +03:00
parent b771eebfbb
commit 1ec69cca81

View File

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