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