Skip to content

Commit

Permalink
Merge pull request #574 from blockscout/lymarenkolev/stats/fix-zero-t…
Browse files Browse the repository at this point in the history
…imestamp

Fix zero timestamp bug
  • Loading branch information
sevenzing authored Aug 7, 2023
2 parents a65b1c2 + b0a0903 commit 2516b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats/stats/src/charts/counters/average_block_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl ChartFullUpdater for AverageBlockTime {
EPOCH FROM timestamp - lag(timestamp) OVER (ORDER BY timestamp)
) as diff
FROM "blocks"
WHERE consensus = true
WHERE consensus = true AND timestamp != to_timestamp(0)
) t
"#,
vec![],
Expand Down

0 comments on commit 2516b11

Please sign in to comment.