aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-26 08:58:49 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-29 11:33:15 +0000
commit017f8168976d99c3a15f9eb3e158bc6a6876c48d (patch)
treeb3aa5d7fdb4c0f938adb3ddbdfb0d7988b5ffb1d /src/daemon/rpc_command_executor.cpp
parentMerge pull request #6044 (diff)
downloadmonero-017f8168976d99c3a15f9eb3e158bc6a6876c48d.tar.xz
daemon: handle printing higher hash rates
Diffstat (limited to '')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index ed614a89b..fc9f8ef39 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -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)