mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Style police.
This commit is contained in:
parent
b8843546e3
commit
fc66a41e85
25
util.c
25
util.c
@ -1441,41 +1441,38 @@ void dev_error(struct cgpu_info *dev, enum dev_reason reason)
|
||||
dev->device_last_not_well = time(NULL);
|
||||
dev->device_not_well_reason = reason;
|
||||
|
||||
|
||||
switch (reason)
|
||||
{
|
||||
switch (reason) {
|
||||
case REASON_THREAD_FAIL_INIT:
|
||||
dev->thread_fail_init_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_THREAD_ZERO_HASH:
|
||||
dev->thread_zero_hash_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_THREAD_FAIL_QUEUE:
|
||||
dev->thread_fail_queue_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_SICK_IDLE_60:
|
||||
dev->dev_sick_idle_60_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_DEAD_IDLE_600:
|
||||
dev->dev_dead_idle_600_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_NOSTART:
|
||||
dev->dev_nostart_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_OVER_HEAT:
|
||||
dev->dev_over_heat_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_THERMAL_CUTOFF:
|
||||
dev->dev_thermal_cutoff_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_COMMS_ERROR:
|
||||
dev->dev_comms_error_count++;
|
||||
break;
|
||||
break;
|
||||
case REASON_DEV_THROTTLE:
|
||||
dev->dev_throttle_count++;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Realloc an existing string to fit an extra string s, appending s to it. */
|
||||
|
Loading…
Reference in New Issue
Block a user