Fix str formatting, float given instead of int master v2.2
authorStefan Huber <shuber@sthu.org>
Tue, 3 Jul 2018 18:20:22 +0000 (20:20 +0200)
committerStefan Huber <shuber@sthu.org>
Tue, 3 Jul 2018 18:20:22 +0000 (20:20 +0200)
sitarba

diff --git a/sitarba b/sitarba
index 9a7519b..6f7cf5b 100755 (executable)
--- a/sitarba
+++ b/sitarba
@@ -513,7 +513,7 @@ class BackupManager:
         # Create new backup directory
         basedir = self.conf.backupdir
         dirname = Backup.getDirName(now, epoch, mode)
-        tmpdirname = dirname + ("-%x" % (random.random()*2e16) )
+        tmpdirname = dirname + ("-%x" % int(random.random()*2e16) )
         targetdir = os.path.join(basedir, tmpdirname)
         os.mkdir(targetdir)