Apply 'ago' at root

This commit is contained in:
2024-11-28 15:58:15 -06:00
parent dfc4e82721
commit 602a9a4267

View File

@@ -101,14 +101,13 @@ pub fn find_save_files() -> Vec<SaveFile> {
) )
.to_string() .to_string()
.replace(" ", "") .replace(" ", "")
+ " ago"
}; };
save_files.push(SaveFile { save_files.push(SaveFile {
name: file_name.to_string(), name: file_name.to_string(),
size: human_bytes(metadata.len() as f64), size: human_bytes(metadata.len() as f64),
path: file_path.to_str().unwrap().to_string(), path: file_path.to_str().unwrap().to_string(),
last_modified: human_last_modified, last_modified: human_last_modified + " ago",
modified_delta: modified_elapsed_secs as usize, modified_delta: modified_elapsed_secs as usize,
}); });
} }