Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions multipool/average.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ do
this_sha=`echo "$this_sha / (1024 * 1024 * 1024)" | bc -l`
this_scrypt=`echo "$this_scrypt / (1024 * 1024)" | bc -l`
this_x11=`echo "$this_x11 / (1024 * 1024)" | bc -l`
this_x13=`echo "$this_x11 / (1024 * 1024)" | bc -l`
this_keccak=`echo "$this_keccak / (1024 * 1024)" | bc -l`

#add to totals
total_sha=`echo "$this_sha + $total_sha" | bc -l`
total_scrypt=`echo "$total_scrypt + $this_scrypt" | bc -l`
total_x11=`echo "$total_x11 + $this_x11" | bc -l`
total_x13=`echo "$total_x11 + $this_x11" | bc -l`
total_keccak=`echo "$total_keccak + $this_keccak" | bc -l`

tmpcount=0
Expand Down Expand Up @@ -61,6 +63,7 @@ echo "now: $now then: $tenminsago"
total_sha=`echo "scale=2;$total_sha / $counter" | bc -l`
total_scrypt=`echo "scale=2;$total_scrypt / $counter" | bc -l`
total_x11=`echo "scale=2;$total_x11 / $counter" | bc -l`
total_x13=`echo "scale=2;$total_x11 / $counter" | bc -l`
total_scryptn=`echo "scale=2;$total_scryptn / $counter / (1024 * 1024)" | bc -l`
total_keccak=`echo "scale=2;$total_keccak / $counter" | bc -l`

Expand All @@ -69,5 +72,6 @@ echo "SHA: $total_sha Scrypt: $total_scrypt X11: $total_x11 Scrypt-N: $total_scr
redis-cli zadd Pool_Stats:AvgHRs:sha $now $total_sha":"$now
redis-cli zadd Pool_Stats:AvgHRs:scrypt $now $total_scrypt":"$now
redis-cli zadd Pool_Stats:AvgHRs:x11 $now $total_x11":"$now
redis-cli zadd Pool_Stats:AvgHRs:x13 $now $total_x13":"$now
redis-cli zadd Pool_Stats:AvgHRs:scryptn $now $total_scryptn":"$now
redis-cli zadd Pool_Stats:AvgHRs:keccak $now $total_keccak":"$now