mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-10 14:57:53 +00:00
some clean up
This commit is contained in:
parent
d7abd01bf4
commit
87a521ac14
@ -613,7 +613,7 @@ int scanhash_scrypt_jane(int thr_id, uint32_t *pdata, const uint32_t *ptarget, u
|
|||||||
nxt = (nxt+1)&1;
|
nxt = (nxt+1)&1;
|
||||||
++iteration;
|
++iteration;
|
||||||
} while (n <= max_nonce && !work_restart[thr_id].restart);
|
} while (n <= max_nonce && !work_restart[thr_id].restart);
|
||||||
out:
|
|
||||||
scrypt_free(&Vbuf);
|
scrypt_free(&Vbuf);
|
||||||
scrypt_free(&Ybuf);
|
scrypt_free(&Ybuf);
|
||||||
scrypt_free(&Xbuf[0]); scrypt_free(&Xbuf[1]);
|
scrypt_free(&Xbuf[0]); scrypt_free(&Xbuf[1]);
|
||||||
|
@ -94,9 +94,6 @@ double stats_get_speed(int thr_id, double def_speed)
|
|||||||
double stats_get_gpu_speed(int gpu_id)
|
double stats_get_gpu_speed(int gpu_id)
|
||||||
{
|
{
|
||||||
double speed = 0.0;
|
double speed = 0.0;
|
||||||
double speeds[MAX_GPUS] = { 0 };
|
|
||||||
int records[MAX_GPUS] = { 0 };
|
|
||||||
int count = 0;
|
|
||||||
|
|
||||||
for (int thr_id=0; thr_id<opt_n_threads; thr_id++) {
|
for (int thr_id=0; thr_id<opt_n_threads; thr_id++) {
|
||||||
int dev_id = device_map[thr_id];
|
int dev_id = device_map[thr_id];
|
||||||
|
Loading…
Reference in New Issue
Block a user