Skip to content

Commit 70e0a42

Browse files
committed
feat(heartbeats): In score table, remove current and max totals
1 parent ffd82a6 commit 70e0a42

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/heartbeats-processor/src/local_db.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,13 @@ pub async fn view_scores(pool: &SqlitePool, config: &Config) -> Result<()> {
713713

714714
let max_scores = get_max_scores(pool).await?;
715715

716+
println!("\nSubmitter Scores Summary:");
717+
println!("Current maximum score possible: {}", max_scores.current);
718+
println!("Total maximum score possible: {}", max_scores.total);
716719
println!("\nSubmitter Scores:");
717720
println!("--------------------------------------------------------");
718721
println!(
719-
"Public Key | Score | Score % | Blocks | Current Max | Total Max | Last Updated | Last Heartbeat"
722+
"Public Key | Score | Score % | Blocks | Last Updated | Last Heartbeat"
720723
);
721724
println!("--------------------------------------------------------");
722725

@@ -728,13 +731,11 @@ pub async fn view_scores(pool: &SqlitePool, config: &Config) -> Result<()> {
728731
};
729732

730733
println!(
731-
"{:<40} | {:>5} | {:>6.2}% | {:>6} | {:>11} | {:>9} | {} | {}",
734+
"{:<40} | {:>5} | {:>6.2}% | {:>6} | {} | {}",
732735
row.public_key,
733736
row.score,
734737
percentage,
735738
row.blocks_produced,
736-
max_scores.current,
737-
max_scores.total,
738739
row.last_updated.unwrap_or_default(),
739740
row.last_heartbeat.unwrap_or_default()
740741
);

0 commit comments

Comments
 (0)