1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-09-08 20:22:11 +00:00

Use blank_get_statline_before for GPU devices that don't support adl monitoring.

This commit is contained in:
Con Kolivas 2013-02-09 19:27:57 +11:00
parent 2c3c9e5b55
commit 5d581cb5d7
3 changed files with 5 additions and 2 deletions

View File

@ -6370,7 +6370,7 @@ static void noop_reinit_device(struct cgpu_info __maybe_unused *cgpu)
{
}
static void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu)
void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu)
{
tailsprintf(buf, " | ");
}

View File

@ -1287,7 +1287,8 @@ static void get_opencl_statline_before(char *buf, struct cgpu_info *gpu)
else
tailsprintf(buf, " ");
tailsprintf(buf, "| ");
}
} else
gpu->drv->get_statline_before = &blank_get_statline_before;
}
#endif

View File

@ -268,6 +268,8 @@ struct gpu_adl {
};
#endif
extern void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu);
struct api_data;
struct thr_info;
struct work;