Skip to content

Commit

Permalink
Merge pull request #2409 from psychocrypt/fix-benchmarkMode
Browse files Browse the repository at this point in the history
fix benchmark mode
  • Loading branch information
fireice-uk authored Apr 23, 2019
2 parents 726fa32 + 711c088 commit 0f5e20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmrstak/cli/cli-miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ int do_benchmark(int block_version, int wait_sec, int work_sec)
/* AMD and NVIDIA is currently only supporting work sizes up to 128byte
*/
printer::inst()->print_msg(L0, "Start a %d second benchmark...", work_sec);
xmrstak::globalStates::inst().switch_work(xmrstak::miner_work("", work, 128, 0, false, 0, 0), dat);
xmrstak::globalStates::inst().switch_work(xmrstak::miner_work("", work, 128, 0, false, 1, 0), dat);
uint64_t iStartStamp = get_timestamp_ms();

std::this_thread::sleep_for(std::chrono::seconds(work_sec));
Expand Down

0 comments on commit 0f5e20d

Please sign in to comment.