From: Stefan Huber Date: Tue, 3 Jul 2018 18:20:22 +0000 (+0200) Subject: Fix str formatting, float given instead of int X-Git-Tag: v2.2 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=HEAD;p=sitarba.git Fix str formatting, float given instead of int --- diff --git a/sitarba b/sitarba index 9a7519b..6f7cf5b 100755 --- 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)