Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
42aa29ad
Commit
42aa29ad
authored
Apr 03, 2018
by
Matt Traudt
Browse files
Make a couple of format strings better
parent
2dddc9a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/commands/generate.py
View file @
42aa29ad
...
...
@@ -46,7 +46,7 @@ def warn_if_not_accurate_enough(lines, constant):
log
.
info
(
'The generated lines are within {:.5}% of what they should '
'be'
.
format
((
1
-
accuracy_ratio
)
*
100
))
if
accuracy_ratio
<
1
-
margin
or
accuracy_ratio
>
1
+
margin
:
log
.
warn
(
'There was {:.3}% error and only +/- {:.3}% is '
log
.
warn
(
'There was {:.3
f
}% error and only +/- {:.3
f
}% is '
'allowed'
.
format
((
1
-
accuracy_ratio
)
*
100
,
margin
*
100
,
2
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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