daemon: handle printing higher hash rates

pull/235/head
moneromooo-monero 5 years ago
parent 4c9fd8d86d
commit 017f816897
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -380,7 +380,7 @@ static void get_metric_prefix(cryptonote::difficulty_type hr, double& hr_d, char
prefix = 0;
return;
}
static const char metric_prefixes[4] = { 'k', 'M', 'G', 'T' };
static const char metric_prefixes[] = { 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y' };
for (size_t i = 0; i < sizeof(metric_prefixes); ++i)
{
if (hr < 1000000)

Loading…
Cancel
Save