summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BitTorrent/Storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BitTorrent/Storage.py b/BitTorrent/Storage.py
index 197fdef..a494cb7 100644
--- a/BitTorrent/Storage.py
+++ b/BitTorrent/Storage.py
@@ -213,7 +213,7 @@ class Storage(object):
resumefile.write(str(amount_done) + '\n')
for x, x, filename in self.ranges:
resumefile.write(str(os.path.getsize(filename)) + ' ' +
- str(os.path.getmtime(filename)) + '\n')
+ str(int(os.path.getmtime(filename))) + '\n')
def check_fastresume(self, resumefile, return_filelist=False,
piece_size=None, numpieces=None, allfiles=None):