Change default IDB data timeframe

This commit is contained in:
Taylor Helsper 2022-06-17 22:42:11 -05:00
parent 3e56746058
commit 79ebdfe62d

View File

@ -1,18 +1,17 @@
#!/bin/bash
# Need to run as sudo
NUM_HOURS=48
NUM_HOURS=24
export TZ="GMT"
echo "Bitcoin Blocks Processed per Hour"
echo "================================="
# Check for arg to change hours
if [ "$#" -eq "1" ]; then
NUM_HOURS=$1
fi
echo "Bitcoin Blocks Processed per Hour"
echo "================================="
# Show current hour
d=$(date "+%Y-%m-%dT%H:")
c=$(grep --text "$d" /mnt/hdd/mynode/bitcoin/debug.log | grep "UpdateTip" | wc -l)