Commit d98f0e6e authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'nkfixpercentages2' into 'master'

Fixed decimal place and rounding

See merge request !22
parents 6c3f2225 86051c16
Pipeline #474 passed with stages
in 1 minute and 1 second
......@@ -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) * 1000) / 10);
# If its changed, output and save
if ($percent_done ne $percent_last) {
print($OUT " Progress: $percent_done\n");
......
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