Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Spencer
wiaflos
Commits
86051c16
Commit
86051c16
authored
Nov 29, 2016
by
Nigel Kukard
Browse files
Fixed decimal place and rounding
parent
6c3f2225
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/client/cmdline.pm
View file @
86051c16
...
...
@@ -233,7 +233,7 @@ sub loadFile
$line_current
++
;
# Grab percent done
my
$percent_done
=
sprintf
('
%5.1f
',
floor
((
$line_current
/
$line_total
)
*
100
)
);
my
$percent_done
=
sprintf
('
%5.1f
',
floor
((
$line_current
/ $line_total) * 100
0) /
10
);
# If its changed, output and save
if
(
$percent_done
ne
$percent_last
)
{
print
(
$OUT
"
Progress:
$percent_done
\n
");
...
...
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