From 9b9bdad5ffd3efb89ef9b24549f6f7a7c3dd2bd8 Mon Sep 17 00:00:00 2001 From: vgorkavenko Date: Wed, 23 Aug 2023 16:54:02 +0400 Subject: [PATCH] fix: abs --- src/storage/clickhouse/clickhouse.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/clickhouse/clickhouse.service.ts b/src/storage/clickhouse/clickhouse.service.ts index 221844a4..6febe692 100644 --- a/src/storage/clickhouse/clickhouse.service.ts +++ b/src/storage/clickhouse/clickhouse.service.ts @@ -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) => ({