fix to logging.

This commit is contained in:
2022-07-28 02:51:36 +00:00
parent 3059894b0e
commit 6a5e50877a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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