diff --git a/main/global_state.h b/main/global_state.h index 65bd314c..b25778fb 100644 --- a/main/global_state.h +++ b/main/global_state.h @@ -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; diff --git a/main/system.c b/main/system.c index 79c925ac..960d42c9 100644 --- a/main/system.c +++ b/main/system.c @@ -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: