mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 03:24:26 +00:00
Reset all hash counters at the same time as resetting start times to get accurate hashrates on exiting which is mandatory for benchmarking.
This commit is contained in:
parent
88a9d83e19
commit
553d53fcee
@ -4611,6 +4611,13 @@ int main (int argc, char *argv[])
|
||||
start_longpoll();
|
||||
|
||||
begin_bench:
|
||||
total_mhashes_done = 0;
|
||||
for (i = 0; i < total_devices; i++) {
|
||||
struct cgpu_info *cgpu = devices[i];
|
||||
|
||||
cgpu->rolling = cgpu->total_mhashes = 0;
|
||||
}
|
||||
|
||||
gettimeofday(&total_tv_start, NULL);
|
||||
gettimeofday(&total_tv_end, NULL);
|
||||
get_datestamp(datestamp, &total_tv_start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user