Post
Topic
Board Mining (Altcoins)
Re: [Mining OS] SimpleMining.net - Easy to use GPU MINING Operating System
by
carafleur
on 18/12/2017, 01:54:14 UTC
I wrote a simple bash script to get some share stats on current running miner.
Assuming you activated "screen logs", there it is :
Code:
#!/bin/bash

log=screenlog.0

while [ ! -f $log ]
 do ls
 echo "Enter logfile name :"
 read log
done

ACC=$(grep accepted $log | wc -l)
INC=$(grep incorrect $log | wc -l) # CryptoNote incorrect shares
STA=$(grep Stale $log | wc -l) # EquiHash stale shares

ERR=$[ 100 * $[ $INC + $STA ] / $[ $ACC + $INC + $STA ] ]

# Display

echo -e "\n
\tLogfile\t: $log
\tAccepted  : $ACC
\tIncorrect : $INC
\tStale     : $STA
\tTotal\t: $[ $ACC + $INC + $STA ]
\t% Lost\t: $ERR\n
"

It will display results like this :
Code:
miner@simpleminer:~$ share_stats


Logfile : screenlog.0
Accepted  : 255
Incorrect : 32
Stale     : 1
Total : 288
% Lost : 11


miner@simpleminer:~$