Change default IDB data timeframe
This commit is contained in:
parent
3e56746058
commit
79ebdfe62d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user