Skip to content

Commit

Permalink
Add timestamp metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Oct 9, 2020
1 parent 9feb1fb commit 7562c87
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 @@ -1051,6 +1051,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 7562c87

Please sign in to comment.