Skip to content

Commit

Permalink
Improve fileinfo stat
Browse files Browse the repository at this point in the history
st_mtime will expand to st_mtim.tv_sec using a macro
  • Loading branch information
networkfusion committed Oct 25, 2024
1 parent b07364a commit f1238de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/views/file_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void draw (menu_t *menu, surface_t *d) {
S_ISDIR(st.st_mode) ? "Directory" : "File",
st.st_mode & S_IWUSR ? "" : "(Read only)",
format_file_type(menu->browser.entry->name, S_ISDIR(st.st_mode)),
ctime(&st.st_mtim.tv_sec)
ctime(&st.st_mtime)
);

component_actions_bar_text_draw(
Expand Down

0 comments on commit f1238de

Please sign in to comment.