|
@@ -2296,6 +2296,12 @@ static void get_statline2(char *buf, struct cgpu_info *cgpu, bool for_curses)
|
|
|
#endif
|
|
#endif
|
|
|
sprintf(buf, "%s ", opt_show_procs ? cgpu->proc_repr_ns : cgpu->dev_repr_ns);
|
|
sprintf(buf, "%s ", opt_show_procs ? cgpu->proc_repr_ns : cgpu->dev_repr_ns);
|
|
|
|
|
|
|
|
|
|
+ if (unlikely(cgpu->status == LIFE_INIT))
|
|
|
|
|
+ {
|
|
|
|
|
+ tailsprintf(buf, "Initializing...");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (api->get_dev_statline_before || api->get_statline_before)
|
|
if (api->get_dev_statline_before || api->get_statline_before)
|
|
|
{
|
|
{
|
|
|
if (api->get_dev_statline_before && api->get_statline_before)
|
|
if (api->get_dev_statline_before && api->get_statline_before)
|
|
@@ -7435,7 +7441,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
|
|
|
char *dev_str = cgpu->proc_repr;
|
|
char *dev_str = cgpu->proc_repr;
|
|
|
int gpu;
|
|
int gpu;
|
|
|
|
|
|
|
|
- if (cgpu->api->get_stats)
|
|
|
|
|
|
|
+ if (cgpu->api->get_stats && likely(cgpu->status != LIFE_INIT))
|
|
|
cgpu->api->get_stats(cgpu);
|
|
cgpu->api->get_stats(cgpu);
|
|
|
|
|
|
|
|
gpu = cgpu->device_id;
|
|
gpu = cgpu->device_id;
|