diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-23 20:21:00 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-23 20:21:00 +0100 |
commit | 30946700a3a90b07a3674bebdc7cb2652e3a2ca8 (patch) | |
tree | ef1eea886eab07ebb1879c520e09bf3ddb7a8b40 /src/daemon | |
parent | daemon: do not divide by 0 when the pool is empty (diff) | |
download | monero-30946700a3a90b07a3674bebdc7cb2652e3a2ca8.tar.xz |
daemon: even when switching branches, compile the damn thing ffs
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index e7c4d10bc..d8d8aac99 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -873,7 +873,7 @@ bool t_rpc_command_executor::print_transaction_pool_stats() { if (tx_info.last_failed_height) ++n_failing; } - size_t n_transactions ? avg_bytes = bytes / n_transactions : 0; + size_t avg_bytes = n_transactions ? bytes / n_transactions : 0; tools::msg_writer() << n_transactions << " tx(es), " << bytes << " bytes total (min " << min_bytes << ", max " << max_bytes << ", avg " << avg_bytes << ")" << std::endl << "fees " << cryptonote::print_money(fee) << " (avg " << cryptonote::print_money(n_transactions ? fee / n_transactions : 0) << " per tx)" << std::endl |