From 6a5e50877a43aa66e31798df8fc0a598a2915573 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Thu, 28 Jul 2022 02:51:36 +0000 Subject: [PATCH] fix to logging. --- monitor-validator-cerberus.sh | 2 +- monitor-validator-evmos.sh | 4 ++-- monitor-validator-lum.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monitor-validator-cerberus.sh b/monitor-validator-cerberus.sh index 619d1f2..7190092 100755 --- a/monitor-validator-cerberus.sh +++ b/monitor-validator-cerberus.sh @@ -10,7 +10,7 @@ fi echo -n "${missed_blocks}," -if [ -z `date | grep ':00:'` ]; then +if [ `date | grep -c ':00:'` -gt 0 ]; then echo "" date fi diff --git a/monitor-validator-evmos.sh b/monitor-validator-evmos.sh index ac6fde0..2c7142f 100755 --- a/monitor-validator-evmos.sh +++ b/monitor-validator-evmos.sh @@ -4,13 +4,13 @@ LOCATION=`dirname "$0"` missed_blocks=`curl -s 'https://api-evmos.cosmostation.io/v1/staking/validator/uptime/evmosvaloper187860d5xukeksge9jz3wwff7h68asdafxdxh4r' | jq '.uptime | length'` -if [ "$missed_blocks" -gt 0 ]; then +if [ "$missed_blocks" -gt 2 ]; then `${LOCATION}/discord.sh general "EVMOS is missing ${missed_blocks} blocks out of the last 100."` fi echo -n "${missed_blocks}," -if [ -z `date | grep ':00:'` ]; then +if [ `date | grep -c ':00:'` -gt 0 ]; then echo "" date fi diff --git a/monitor-validator-lum.sh b/monitor-validator-lum.sh index f016836..8499fae 100755 --- a/monitor-validator-lum.sh +++ b/monitor-validator-lum.sh @@ -10,7 +10,7 @@ fi echo -n "${missed_blocks}," -if [ -z `date | grep ':00:'` ]; then +if [ `date | grep -c ':00:'` -gt 0 ]; then echo "" date fi