Skip to content

Commit

Permalink
Add timestamp metric
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Oct 9, 2020
1 parent 7324e7c commit b86110c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,11 @@ impl Bank {
{
if let Some(timestamp_estimate) = self.get_timestamp_estimate() {
if timestamp_estimate > unix_timestamp {
datapoint_info!(
"bank-timestamp-correction",
("from_genesis", unix_timestamp, i64),
("corrected", timestamp_estimate, i64),
);
unix_timestamp = timestamp_estimate
}
}
Expand Down

0 comments on commit b86110c

Please sign in to comment.