mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-09 20:39:14 +02:00
Switch share count from u16 to u64 #219
This commit is contained in:
parent
19aa080202
commit
e6c91eea6e
@ -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