Error counters #326

Merged
merged 20 commits into from Nov 18, 2012

Conversation

Projects
None yet
3 participants
@pshep

pshep commented Nov 5, 2012

A tidy up for the device error counters.

@pshep

This comment has been minimized.

Show comment Hide comment
@pshep

pshep Nov 5, 2012

In retrospect, the function probably should have gone in api.c...

pshep commented Nov 5, 2012

In retrospect, the function probably should have gone in api.c...

cgminer.c
@@ -5616,8 +5609,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
applog(LOG_ERR, "%s: Idle for more than 60 seconds, declaring SICK!", dev_str);
gettimeofday(&thr->sick, NULL);
- cgpu->device_last_not_well = time(NULL);
- cgpu->device_not_well_reason = REASON_DEV_SICK_IDLE_60;
+ dev_error(cgpu, REASON_DEV_SICK_IDLE_60);
cgpu->dev_sick_idle_60_count++;

This comment has been minimized.

Show comment Hide comment
@kanoi

kanoi Nov 5, 2012

You gotta remove this line too :)

@kanoi

kanoi Nov 5, 2012

You gotta remove this line too :)

@pshep

This comment has been minimized.

Show comment Hide comment
@pshep

pshep Nov 5, 2012

Well spotted, thanks.

pshep commented Nov 5, 2012

Well spotted, thanks.

ckolivas added a commit that referenced this pull request Nov 18, 2012

@ckolivas ckolivas merged commit f14bf5b into ckolivas:master Nov 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment