Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
1a172040
Commit
1a172040
authored
Dec 10, 2020
by
Dennis Gläser
Browse files
[status] fix percentage output to two decimals
parent
01e4184a
Pipeline
#2773
passed with stages
in 11 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frackit/sampling/status.hh
View file @
1a172040
...
...
@@ -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
;
}
/*!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment