Increase minimum time to log block processing (#2661)

* Increase minimum time to log block processing

* Revert change to vote processor timings
This commit is contained in:
Guilherme Lawless 2020-03-13 18:39:26 +00:00 committed by GitHub
commit 67fb5cc21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,7 +256,7 @@ void nano::block_processor::process_batch (nano::unique_lock<std::mutex> & lock_
awaiting_write = false;
lock_a.unlock ();
if (node.config.logging.timing_logging () && number_of_blocks_processed != 0 && timer_l.stop () > std::chrono::milliseconds (10))
if (node.config.logging.timing_logging () && number_of_blocks_processed != 0 && timer_l.stop () > std::chrono::milliseconds (100))
{
node.logger.always_log (boost::str (boost::format ("Processed %1% blocks (%2% blocks were forced) in %3% %4%") % number_of_blocks_processed % number_of_forced_processed % timer_l.value ().count () % timer_l.unit ()));
}