diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-03-31 12:01:19 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-03-31 12:01:19 +0300 |
| commit | df6026182ab1df95a07d01ad54481e7ebf2c69e7 (patch) | |
| tree | 5b9813551c37b8ad30687e5c2aaae238d2119d5e /src/daemon/command_parser_executor.cpp | |
| parent | 8790904cf9ccba56a1cbab51b01f2cbb0a5cb143 (diff) | |
| parent | 0ee87e63050c31405182042868a89d4f3f3ac7c2 (diff) | |
| download | monzero-core-df6026182ab1df95a07d01ad54481e7ebf2c69e7.tar.gz monzero-core-df6026182ab1df95a07d01ad54481e7ebf2c69e7.tar.xz monzero-core-df6026182ab1df95a07d01ad54481e7ebf2c69e7.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
| -rw-r--r-- | src/daemon/command_parser_executor.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp index 0b42257e7..166fe04ca 100644 --- a/src/daemon/command_parser_executor.cpp +++ b/src/daemon/command_parser_executor.cpp @@ -439,5 +439,23 @@ bool t_command_parser_executor::flush_txpool(const std::vector<std::string>& arg return m_executor.flush_txpool(txid); } +bool t_command_parser_executor::output_histogram(const std::vector<std::string>& args) +{ + if (args.size() > 2) return false; + + uint64_t min_count = 3; + uint64_t max_count = 0; + + if (args.size() >= 1) + { + min_count = boost::lexical_cast<uint64_t>(args[0]); + } + if (args.size() >= 2) + { + max_count = boost::lexical_cast<uint64_t>(args[1]); + } + return m_executor.output_histogram(min_count, max_count); +} + } // namespace daemonize |
