Skip to content

Commit

Permalink
Snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
a1i3nj03 committed Apr 30, 2018
1 parent 9b3f0ce commit 89eb1a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ void sig_fn(int sig)
}
*/
uint64_t opt_seq = 0x67452301EFCDAB89;
#define X16R_BLOCKTIME_GUESS 600
#define X16R_BLOCKTIME_GUESS 1200
static void *miner_thread(void *userdata)
{
struct thr_info *mythr = (struct thr_info *)userdata;
Expand Down Expand Up @@ -2049,7 +2049,7 @@ static void *miner_thread(void *userdata)
unsigned long hashes_done;
uint32_t start_nonce;
uint32_t scan_time = have_longpoll ? LP_SCANTIME : opt_scantime;
uint64_t max64, minmax = 0x100000;
uint64_t max64, minmax = 0x100000;//0x100000;
int nodata_check_oft = 0;
bool regen = false;

Expand Down Expand Up @@ -2560,7 +2560,8 @@ static void *miner_thread(void *userdata)
double dtime = (double)diff.tv_sec + 1e-6 * diff.tv_usec;
gpulog(LOG_INFO, thr_id, "Job switch (%f)", dtime);
}
// work_done = 1;
if (g_work_time)
work_done = 1;
continue;
}
else if (rc == -128)
Expand Down
2 changes: 1 addition & 1 deletion x16r/x16r.cu
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ extern "C" int scanhash_x16r(int thr_id, struct work* work, uint32_t max_nonce,
else
{

if (!g_work_signal && throughput >= ((max_nonce - pdata[19]) >> 1))
if (!g_work_signal && throughput >= ((max_nonce - pdata[19]) >> 2))
{
g_work_time = 0;
// gpulog(LOG_INFO, thr_id, "G_WORK3");
Expand Down

0 comments on commit 89eb1a1

Please sign in to comment.