solana validators
: Fix credits column formatting
This commit is contained in:
@ -278,7 +278,7 @@ impl fmt::Display for CliValidators {
|
|||||||
|
|
||||||
writeln!(
|
writeln!(
|
||||||
f,
|
f,
|
||||||
"{} {:<44} {:<44} {:>9}% {:>8} {:>10} {:>7} {}",
|
"{} {:<44} {:<44} {:>9}% {:>8} {:>10} {:>10} {}",
|
||||||
if delinquent {
|
if delinquent {
|
||||||
WARNING.to_string()
|
WARNING.to_string()
|
||||||
} else {
|
} else {
|
||||||
@ -294,7 +294,7 @@ impl fmt::Display for CliValidators {
|
|||||||
format!(
|
format!(
|
||||||
"{} ({:.2}%)",
|
"{} ({:.2}%)",
|
||||||
build_balance_message(validator.activated_stake, use_lamports_unit, true),
|
build_balance_message(validator.activated_stake, use_lamports_unit, true),
|
||||||
100. * validator.activated_stake as f64 / total_active_stake as f64
|
100. * validator.activated_stake as f64 / total_active_stake as f64,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
"-".into()
|
"-".into()
|
||||||
@ -335,7 +335,7 @@ impl fmt::Display for CliValidators {
|
|||||||
f,
|
f,
|
||||||
"{}",
|
"{}",
|
||||||
style(format!(
|
style(format!(
|
||||||
" {:<44} {:<44} {} {} {} {:>7} {}",
|
" {:<44} {:<44} {} {} {} {:>10} {}",
|
||||||
"Identity Pubkey",
|
"Identity Pubkey",
|
||||||
"Vote Account Pubkey",
|
"Vote Account Pubkey",
|
||||||
"Commission",
|
"Commission",
|
||||||
|
Reference in New Issue
Block a user