fix toTimespec
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user