From ffba4f1f4c4c73d20c0c67ac379cef13c557e605 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 20 Dec 2022 23:10:25 +0100 Subject: [PATCH] Output flow in decimal. --- src/bin/cli.rs | 2 +- src/graph/flow.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/cli.rs b/src/bin/cli.rs index b470a5e..757341e 100644 --- a/src/bin/cli.rs +++ b/src/bin/cli.rs @@ -84,7 +84,7 @@ fn main() { max_flow, max_hops, ); - println!("Found flow: {flow}"); + println!("Found flow: {}", flow.to_decimal()); //println!("{:?}", transfers); let result = json::object! { diff --git a/src/graph/flow.rs b/src/graph/flow.rs index 5d7e856..5e37258 100644 --- a/src/graph/flow.rs +++ b/src/graph/flow.rs @@ -52,7 +52,7 @@ pub fn compute_flow( !out.is_empty() }); - println!("Max flow: {flow}"); + println!("Max flow: {}", flow.to_decimal()); if flow > requested_flow { let still_to_prune = prune_flow(source, sink, flow - requested_flow, &mut used_edges);