|
|
@ -202,24 +202,25 @@ extern "C" void hashlog_purge_all(void) |
|
|
|
tlastshares.clear(); |
|
|
|
tlastshares.clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Can be used to debug... |
|
|
|
* Used to debug ranges... |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
extern "C" void hashlog_dump_job(char* jobid) |
|
|
|
extern "C" void hashlog_dump_job(char* jobid) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int deleted = 0; |
|
|
|
if (opt_debug) { |
|
|
|
uint64_t njobid = hextouint(jobid); |
|
|
|
int deleted = 0; |
|
|
|
uint64_t keypfx = (njobid << 32); |
|
|
|
uint64_t njobid = hextouint(jobid); |
|
|
|
uint32_t sz = tlastshares.size(); |
|
|
|
uint64_t keypfx = (njobid << 32); |
|
|
|
std::map<uint64_t, hashlog_data>::iterator i = tlastshares.begin(); |
|
|
|
uint32_t sz = tlastshares.size(); |
|
|
|
while (i != tlastshares.end()) { |
|
|
|
std::map<uint64_t, hashlog_data>::iterator i = tlastshares.begin(); |
|
|
|
if ((keypfx & i->first) == keypfx) { |
|
|
|
while (i != tlastshares.end()) { |
|
|
|
applog(LOG_BLUE, "job %s range : %x %x %s added %x upd %x", jobid, |
|
|
|
if ((keypfx & i->first) == keypfx) { |
|
|
|
i->second.scanned_from, i->second.scanned_to, |
|
|
|
applog(LOG_BLUE, "job %s range : %x %x %s added %x upd %x", jobid, |
|
|
|
i->second.tm_sent ? "sent" : "", |
|
|
|
i->second.scanned_from, i->second.scanned_to, |
|
|
|
i->second.tm_add, i->second.tm_upd);/* */ |
|
|
|
i->second.tm_sent ? "sent" : "", |
|
|
|
|
|
|
|
i->second.tm_add, i->second.tm_upd);/* */ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
i++; |
|
|
|
} |
|
|
|
} |
|
|
|
i++; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |