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