From 560ed90168749f4ee765efaae3d361db212dbf74 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 2 Jan 2021 08:04:38 -0800 Subject: [PATCH] Tune rewards output --- cli-output/src/cli_output.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli-output/src/cli_output.rs b/cli-output/src/cli_output.rs index 6a44fa90c..74256a920 100644 --- a/cli-output/src/cli_output.rs +++ b/cli-output/src/cli_output.rs @@ -649,13 +649,13 @@ fn show_epoch_rewards( writeln!(f, "Epoch Rewards:")?; writeln!( f, - " {:<8} {:<11} {:<15} {:<15} {:>14} {:>14}", + " {:<6} {:<11} {:<16} {:<16} {:>14} {:>14}", "Epoch", "Reward Slot", "Amount", "New Balance", "Percent Change", "APR" )?; for reward in epoch_rewards { writeln!( f, - " {:<8} {:<11} ◎{:<14.9} ◎{:<14.9} {:>13.9}% {}", + " {:<6} {:<11} ◎{:<16.9} ◎{:<14.9} {:>13.2}% {}", reward.epoch, reward.effective_slot, lamports_to_sol(reward.amount), @@ -663,7 +663,7 @@ fn show_epoch_rewards( reward.percent_change, reward .apr - .map(|apr| format!("{:>13.9}%", apr)) + .map(|apr| format!("{:>13.2}%", apr)) .unwrap_or_default(), )?; }