1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Only show ztex board count if any exist.

This commit is contained in:
Con Kolivas 2012-06-26 22:38:18 +10:00
parent 68a3a9ad10
commit ae400b4f09

View File

@ -63,7 +63,8 @@ static void ztex_detect(void)
struct cgpu_info *ztex;
cnt = libztex_scanDevices(&ztex_devices);
applog(LOG_WARNING, "Found %d ztex board(s)", cnt);
if (cnt > 0)
applog(LOG_WARNING, "Found %d ztex board%s", cnt, cnt > 1 ? "s" : "");
for (i = 0; i < cnt; i++) {
ztex = calloc(1, sizeof(struct cgpu_info));