Merge pull request #242 from tommywatson/issue_219

Switch share count from u16 to u64 #219
This commit is contained in:
WantClue 2024-07-02 11:39:42 +02:00 committed by GitHub
commit 2e57ff2b4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: