Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Add column for slot range of epoch to epoch-info #7954

Merged
merged 2 commits into from
Jan 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add column for slot range of epoch to epoch-info
  • Loading branch information
ryoqun committed Jan 24, 2020
commit 75ea86f62cd6d72359c4c01825bf33a412aceecf
6 changes: 6 additions & 0 deletions cli/src/cluster_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ pub fn process_get_epoch_info(
println!();
println_name_value("Slot:", &epoch_info.absolute_slot.to_string());
println_name_value("Epoch:", &epoch_info.epoch.to_string());
let start_slot = epoch_info.absolute_slot - epoch_info.slot_index;
let end_slot = start_slot + epoch_info.slots_in_epoch;
println_name_value(
"Epoch's slot range:",
ryoqun marked this conversation as resolved.
Show resolved Hide resolved
&format!("[{}..{})", start_slot, end_slot),
);
println_name_value(
"Epoch completed percent:",
&format!(
Expand Down