Skip to content

Commit 8b9998f

Browse files
committed
round verbosity_period_ from SetVerbosityFrequency()
1 parent a419d41 commit 8b9998f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/TaskManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void TaskManager::Run(long long nEvents) {
103103

104104
if (verbosity_frequency_ > 0) {
105105
const int verbosityPeriod = nEvents / verbosity_frequency_;
106-
const int vPlog = static_cast<int>(std::log10(verbosityPeriod));
106+
const int vPlog = static_cast<int>(std::round(std::log10(verbosityPeriod)));
107107
verbosity_period_ = static_cast<int>(std::pow(10, vPlog));
108108
}
109109

0 commit comments

Comments
 (0)