1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Adding serial number to status line.

Also preventing segfault on device removal.
This commit is contained in:
nelisky 2012-03-20 19:47:23 +00:00
parent 79756384d4
commit 261677d1ac

6
ztex.c
View File

@ -270,8 +270,10 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
static void ztex_statline_before(char *buf, struct cgpu_info *cgpu)
{
tailsprintf(buf, "%dMhz", cgpu->device->freqM1 * (cgpu->device->freqM + 1));
tailsprintf(buf, "| ");
if (cgpu->deven == DEV_ENABLED) {
tailsprintf(buf, "%s | ", cgpu->device->snString);
tailsprintf(buf, "%dMhz | ", cgpu->device->freqM1 * (cgpu->device->freqM + 1));
}
}
static bool ztex_prepare(struct thr_info *thr)