Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- PATH=/usr/sbin:/usr/bin:/sbin:/bin
- /usr/bin/wget -q http://happymining.de:7903/global_stats -O /tmp/global_stats.json
- v_pool=`/usr/local/bin/jshon -Q -e pool_hash_rate < /tmp/global_stats.json`
- v_network=`/usr/local/bin/jshon -Q -e network_hashrate < /tmp/global_stats.json`
- v_diff=`/usr/local/bin/jshon -Q -e network_block_difficulty < /tmp/global_stats.json`
- case $1 in
- config)
- cat <<'EOM'
- graph_category p2pool
- graph_vlabel hashrate
- graph_args --logarithmic
- graph_scale yes
- pool.label network hashrate
- network.label global hashrate
- graph_title network and global pool hashrate
- EOM
- exit 0;;
- esac
- echo "pool.value" $v_pool
- echo "network.value" $v_network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement