]> git.sthu.org Git - sitarba.git/commitdiff
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 9a7519bf515dc7d3e35a199dafec1cd60025d1bc..6f7cf5b69242c641ef61ab22c3d63e2cbe480b34 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)