Skip to content

Commit

Permalink
truncate negative vals for total_txns
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Dec 11, 2024
1 parent cbc34af commit 88e63d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stats/stats/src/charts/counters/total_txns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl ValueEstimation for TotalTxnsEstimation {
)
.await
.map_err(ChartError::BlockscoutDB)?
.map(|n| u64::try_from(n).unwrap_or(0))
.unwrap_or(0);
Ok(DateValue {
timespan: now.date_naive(),
Expand Down

0 comments on commit 88e63d5

Please sign in to comment.