mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-13 14:42:05 +00:00
format fix and bad variable usage fix for --benchfile
This commit is contained in:
parent
d3d1493bcf
commit
f946aa6fd2
@ -3075,14 +3075,14 @@ static bool benchfile_get_work(struct work *work)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
do
|
do {
|
||||||
{
|
|
||||||
benchfile_line++;
|
benchfile_line++;
|
||||||
|
|
||||||
// Empty lines and lines starting with '#' or '/' are ignored
|
// Empty lines and lines starting with '#' or '/' are ignored
|
||||||
if (*buf != '\0' && *buf != '#' && *buf != '/') {
|
if (*buf != '\0' && *buf != '#' && *buf != '/') {
|
||||||
char *commas[BENCHWORK_COUNT];
|
char *commas[BENCHWORK_COUNT];
|
||||||
int i, j, len;
|
int i, j, len;
|
||||||
|
long nonce_time;
|
||||||
|
|
||||||
commas[0] = buf;
|
commas[0] = buf;
|
||||||
for (i = 1; i < BENCHWORK_COUNT; i++) {
|
for (i = 1; i < BENCHWORK_COUNT; i++) {
|
||||||
@ -3128,9 +3128,9 @@ static bool benchfile_get_work(struct work *work)
|
|||||||
j += 8;
|
j += 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
long time = atol(commas[BENCHWORK_NONCETIME]);
|
nonce_time = atol(commas[BENCHWORK_NONCETIME]);
|
||||||
|
|
||||||
sprintf(&(item[j]), "%08lx", time);
|
sprintf(&(item[j]), "%08lx", nonce_time);
|
||||||
j += 8;
|
j += 8;
|
||||||
|
|
||||||
strcpy(&(item[j]), commas[BENCHWORK_DIFFBITS]);
|
strcpy(&(item[j]), commas[BENCHWORK_DIFFBITS]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user