process_get_epoch_info resulting in duration value underflow (#31712)
This commit is contained in:
parent
936d2cf3c2
commit
08bb6f7070
|
@ -1131,7 +1131,7 @@ pub fn process_get_epoch_info(rpc_client: &RpcClient, config: &CliConfig) -> Pro
|
||||||
.get_block_time(first_block_in_epoch)
|
.get_block_time(first_block_in_epoch)
|
||||||
.ok()
|
.ok()
|
||||||
.map(|time| {
|
.map(|time| {
|
||||||
time + (((first_block_in_epoch - epoch_expected_start_slot)
|
time - (((first_block_in_epoch - epoch_expected_start_slot)
|
||||||
* average_slot_time_ms)
|
* average_slot_time_ms)
|
||||||
/ 1000) as i64
|
/ 1000) as i64
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue