Advertisement
fydel

drk_diff

Jul 26th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 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 network difficulty
  10. diff.label difficulty
  11. EOM
  12. echo "graph_title network difficulty"
  13.  
  14.         exit 0;;
  15. esac
  16.  
  17.  
  18. /usr/bin/wget -q http://happymining.de:7903/global_stats -O /tmp/global_stats.json
  19.  
  20. v_diff=`/usr/local/bin/jshon -Q -e network_block_difficulty < /tmp/global_stats.json`
  21.  
  22. echo "diff.value" $v_diff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement