mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
ztex Mhz reporting
This commit is contained in:
parent
8f58d25614
commit
79756384d4
7
ztex.c
7
ztex.c
@ -268,6 +268,12 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
|
|||||||
return noncecnt > 0 ? noncecnt : 1;
|
return noncecnt > 0 ? noncecnt : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ztex_statline_before(char *buf, struct cgpu_info *cgpu)
|
||||||
|
{
|
||||||
|
tailsprintf(buf, "%dMhz", cgpu->device->freqM1 * (cgpu->device->freqM + 1));
|
||||||
|
tailsprintf(buf, "| ");
|
||||||
|
}
|
||||||
|
|
||||||
static bool ztex_prepare(struct thr_info *thr)
|
static bool ztex_prepare(struct thr_info *thr)
|
||||||
{
|
{
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
@ -303,6 +309,7 @@ static void ztex_disable (struct thr_info *thr)
|
|||||||
struct device_api ztex_api = {
|
struct device_api ztex_api = {
|
||||||
.name = "ZTX",
|
.name = "ZTX",
|
||||||
.api_detect = ztex_detect,
|
.api_detect = ztex_detect,
|
||||||
|
.get_statline_before = ztex_statline_before,
|
||||||
.thread_prepare = ztex_prepare,
|
.thread_prepare = ztex_prepare,
|
||||||
.scanhash = ztex_scanhash,
|
.scanhash = ztex_scanhash,
|
||||||
.thread_shutdown = ztex_shutdown,
|
.thread_shutdown = ztex_shutdown,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user