]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: always record lease expiration times as integers
authorBrian Warner <warner@lothar.com>
Tue, 11 Sep 2007 21:53:31 +0000 (14:53 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 11 Sep 2007 21:53:31 +0000 (14:53 -0700)
src/allmydata/storage.py

index 741b459b111f007eff05569965453a75ea7aa224..a185c64c70287731a094e45a6ed51ff1b17bb413 100644 (file)
@@ -75,7 +75,7 @@ class ShareFile:
         assert f.tell() == offset
         f.write(struct.pack(">L32s32sL",
                             owner_num, renew_secret, cancel_secret,
-                            expiration_time))
+                            int(expiration_time)))
 
     def _read_num_leases(self, f):
         f.seek(0x08)