time: run vfmt

pull/9608/head
Delyan Angelov 2021-04-05 10:25:02 +03:00
parent c58b4cb1da
commit 82de973ee6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ fn linux_now() Time {
mut ts := C.timespec{}
C.clock_gettime(C.CLOCK_REALTIME, &ts)
loc_tm := C.tm{}
C.localtime_r(&time.time_t(voidptr(&ts.tv_sec)), &loc_tm)
C.localtime_r(&time_t(voidptr(&ts.tv_sec)), &loc_tm)
return convert_ctime(loc_tm, int(ts.tv_nsec / 1000))
}