Skip to content

Commit

Permalink
Fixed another bug in tar filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Granroth-Wilding committed Apr 7, 2016
1 parent 2802ca0 commit 89d7be0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/pimlico/modules/corpora/tar_filter/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"""
import random

import math

from pimlico.core.modules.base import BaseModuleInfo
from pimlico.core.modules.execute import ModuleNotReadyError
from pimlico.datatypes.base import IterableCorpus
Expand Down Expand Up @@ -40,7 +42,7 @@ def tarballs(self):

if self._tarballs is None:
# Work out now what the archive names are going to look like and how many there will be
total_archives = len(self) / self.archive_size
total_archives = math.ceil(float(len(self)) / self.archive_size)

# Work out how many digits to pad the archive numbers with in the filenames
digits = len("%d" % (total_archives-1))
Expand Down

0 comments on commit 89d7be0

Please sign in to comment.