Commit 71b38a3d authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'feature/improve-status-progress-output' into 'master'

[status] fix percentage output to two decimals

See merge request tools/frackit!203
parents 01e4184a 1a172040
Pipeline #2775 passed with stages
in 11 minutes and 19 seconds
......@@ -253,8 +253,9 @@ public:
std::cout << " " << std::string( paddingCount, ' ') << countString + ' '
<< " | " << std::string( paddingRejected, ' ') << rejectedCountString + ' '
<< " | " << std::string( paddingRatio, ' ') << ratio << std::string(4, ' ')
<< " | " << std::string( paddingProgess, ' ') << (hasProgess ? std::to_string(progress) : "n.a.") << std::endl;
<< " | " << std::string( paddingRatio, ' ') << ratio << std::string(4, ' ');
if (hasProgess) std::cout << " | " << std::string( paddingProgess, ' ') << progress << std::endl;
else std::cout << " | " << std::string( paddingProgess, ' ') << "n.a" << std::endl;
}
/*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment