fix(stats): fixed cputime on linux

This commit is contained in:
Folke Lemaitre 2023-01-02 20:50:10 +01:00
parent 277a2ab10b
commit 06db1ec3c6
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function M.cputime()
} nanotime;
int clock_gettime(clockid_t clk_id, struct timespec *tp);
]])
if M.C.clock_gettime then
if ffi.C.clock_gettime then
M.C = ffi.C
end
end)