Skip to content

Commit

Permalink
fix bug with filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
dietzc committed Aug 22, 2016
1 parent 61f3f54 commit f4ebbe5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ protected void run(final RowInput inData, final ExecutionContext exec, final lon
// get number of digits needed for padding
final int digits;
if (size == -1) {
digits = (int) Short.MAX_VALUE;
// very magic
digits = (int) 7;
} else {
digits = (int) Math.log10(size) + 1;
}
Expand Down

0 comments on commit f4ebbe5

Please sign in to comment.