mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-29 11:11:45 +01:00
Merge pull request #242 from tommywatson/issue_219
Switch share count from u16 to u64 #219
This commit is contained in:
commit
2e57ff2b4d
@ -52,8 +52,8 @@ typedef struct
|
||||
int historical_hashrate_init;
|
||||
double current_hashrate;
|
||||
int64_t start_time;
|
||||
uint16_t shares_accepted;
|
||||
uint16_t shares_rejected;
|
||||
uint64_t shares_accepted;
|
||||
uint64_t shares_rejected;
|
||||
int screen_page;
|
||||
char oled_buf[20];
|
||||
uint64_t best_nonce_diff;
|
||||
|
@ -154,7 +154,7 @@ static void _update_shares(GlobalState * GLOBAL_STATE)
|
||||
case DEVICE_SUPRA:
|
||||
OLED_clearLine(1);
|
||||
memset(module->oled_buf, 0, 20);
|
||||
snprintf(module->oled_buf, 20, "A/R: %u/%u", module->shares_accepted, module->shares_rejected);
|
||||
snprintf(module->oled_buf, 20, "A/R: %llu/%llu", module->shares_accepted, module->shares_rejected);
|
||||
OLED_writeString(0, 1, module->oled_buf);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user