Commit 86051c16 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fixed decimal place and rounding

parent 6c3f2225
...@@ -233,7 +233,7 @@ sub loadFile ...@@ -233,7 +233,7 @@ sub loadFile
$line_current++; $line_current++;
# Grab percent done # 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 its changed, output and save
if ($percent_done ne $percent_last) { if ($percent_done ne $percent_last) {
print($OUT " Progress: $percent_done\n"); print($OUT " Progress: $percent_done\n");
......
Supports Markdown
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