From da8cb964e56d5518a1970d9278bf8e6c3af67eaf Mon Sep 17 00:00:00 2001
From: Lionel Cons <lionel.cons@cern.ch>
Date: Fri, 13 Nov 2015 13:41:07 +0100
Subject: [PATCH] fixed directory name generation
---
dirq/QueueSimple.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dirq/QueueSimple.py b/dirq/QueueSimple.py
index 588ac07..f9e85ca 100644
--- a/dirq/QueueSimple.py
+++ b/dirq/QueueSimple.py
@@ -143,7 +143,7 @@ class QueueSimple(QueueBase):
def _add_dir(self):
""" Return new directory name based on time and granularity. """
- now = time.time()
+ now = int(time.time())
if self.granularity > 1:
now -= now % self.granularity
return "%08x" % now
--
1.9.3