ledger-tool: fix off-by-one in `graph` skipped slot label

This commit is contained in:
Trent Nelson 2022-07-18 16:17:59 -06:00 committed by Trent Nelson
parent a603c8b0bc
commit a541827fb9
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ fn graph_forks(bank_forks: &BankForks, include_all_votes: bool) -> String {
"1"
};
let link_label = if slot_distance > 1 {
format!("label=\"{} slots\",color=red", slot_distance)
format!("label=\"{} slots\",color=red", slot_distance - 1)
} else {
"color=blue".to_string()
};