Skip to content

Commit

Permalink
mtim -> mtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptkeeper committed Apr 28, 2024
1 parent add449c commit 4500174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int fsstat(const char* fp, struct fsstat_s* s) {
#if defined(__FreeBSD__) || defined(__APPLE__)
const struct timespec ts = st.st_mtimespec; /* last modified */
#else
const struct timespec ts = st.st_mtim; /* last modified */
const struct timespec ts = st.st_mtime; /* last modified */
#endif
s->lmod = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; /* convert to millis */
s->fsze = st.st_size; /* copy file size */
Expand Down

0 comments on commit 4500174

Please sign in to comment.