update day 7
This commit is contained in:
parent
64820c0251
commit
ffd5771fc9
@ -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}");
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user