Skip to content

Commit

Permalink
Merge pull request #206 from lidofinance/fix/sync-query
Browse files Browse the repository at this point in the history
fix: abs
  • Loading branch information
infloop authored Dec 8, 2023
2 parents 98fdbf7 + 9b9bdad commit 729d538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/clickhouse/clickhouse.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class ClickhouseService implements OnModuleInit {
epoch,
epochInterval,
validatorIndexes,
`sync_percent < (${chainAvg} - ${this.config.get('SYNC_PARTICIPATION_DISTANCE_DOWN_FROM_CHAIN_AVG')})`,
`sync_percent < abs(${chainAvg} - ${this.config.get('SYNC_PARTICIPATION_DISTANCE_DOWN_FROM_CHAIN_AVG')})`,
),
)
).map((v) => ({
Expand Down

0 comments on commit 729d538

Please sign in to comment.