Skip to content

Commit

Permalink
Use mtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
qpfiffer committed Dec 12, 2023
1 parent bf9a878 commit 1f5634a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/shithouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static int ctime_compare(const void *item_a, const void *item_b) {
const struct file *file_a = (struct file *)item_a;
const struct file *file_b = (struct file *)item_b;

return file_a->sb.st_ctim.tv_sec < file_b->sb.st_ctim.tv_sec;
return file_a->sb.st_mtim.tv_sec < file_b->sb.st_mtim.tv_sec;
}

static int l_dir(lua_State *L) {
Expand Down

0 comments on commit 1f5634a

Please sign in to comment.