Advertisement
fydel

miner_XpQ8rSWuEGqr9zm9U6wjqcmHPcV8SLV3GN

Jul 26th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. code=`echo $0 | cut -c 26-`
  4.  
  5. case $1 in
  6.    config)
  7.         cat <<'EOM'
  8. graph_category p2pool
  9. graph_vlabel Hash rate
  10. miner_hash_rate.label Hash rate
  11. miner_dead_hash_rate.label Dead hash rate
  12. EOM
  13. echo "graph_title " $code
  14.  
  15.         exit 0;;
  16. esac
  17.  
  18. /usr/bin/wget -q http://happymining.de:7903/local_stats -O /tmp/local_stats.json
  19.  
  20. miner_hash_rates=`/usr/local/bin/jshon -Q -e miner_hash_rates -e $code < /tmp/local_stats.json`
  21. miner_dead_hash_rates=`/usr/local/bin/jshon -Q -e miner_dead_hash_rates -e $code < /tmp/local_stats.json`
  22.  
  23. echo "miner_hash_rate.value" $miner_hash_rates
  24. echo "miner_dead_hash_rate.value" $miner_dead_hash_rates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement