1
0

update day 7

This commit is contained in:
Jack Bond-Preston 2022-12-23 23:04:34 +00:00
parent 64820c0251
commit ffd5771fc9
Signed by: jack
GPG Key ID: 010071F1482BA852

View File

@ -67,10 +67,6 @@ fn main() {
let free_space = 70000000 - used_space;
let need_to_free = 30000000 - free_space;
let mut delete = g.node_weights().filter(|(n, w)| { n.ends_with("/") && *w > need_to_free }).map(|(_, w)| { w }).collect::<Vec<&u64>>();
delete.sort();
let delete = delete[0];
let delete = g.node_weights().filter(|(n, w)| { n.ends_with("/") && *w > need_to_free }).map(|(_, w)| { w }).min().unwrap();
println!("delete size: {delete}");
}