Switch share count from u16 to u64 #219

This commit is contained in:
tommy 2024-06-23 11:33:57 -05:00
parent 19aa080202
commit e6c91eea6e
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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: