Improve fileinfo stat

st_mtime will expand to st_mtim.tv_sec using a macro
This commit is contained in:
Robin Jones 2024-10-25 16:40:24 +01:00
parent b07364aa3f
commit f1238debb1

View File

@ -84,7 +84,7 @@ static void draw (menu_t *menu, surface_t *d) {
S_ISDIR(st.st_mode) ? "Directory" : "File", S_ISDIR(st.st_mode) ? "Directory" : "File",
st.st_mode & S_IWUSR ? "" : "(Read only)", st.st_mode & S_IWUSR ? "" : "(Read only)",
format_file_type(menu->browser.entry->name, S_ISDIR(st.st_mode)), 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( component_actions_bar_text_draw(