fix: mempool_no shows zero

This commit is contained in:
moneroexamples 2017-06-06 13:40:11 +08:00
parent e6b6666738
commit 329cc6298c
1 changed files with 3 additions and 2 deletions

View File

@ -193,11 +193,12 @@ MempoolStatus::read_mempool()
// clear current mempool txs vector
// repopulate it with each execution of read_mempool()
// not very efficient but good enough for now.
mempool_txs = std::move(local_copy_of_mempool_txs);
mempool_no = local_copy_of_mempool_txs.size();
mempool_no = local_copy_of_mempool_txs.size();
mempool_size = mempool_size_kB;
mempool_txs = std::move(local_copy_of_mempool_txs);
return true;
}