From 09e63732915c180f921dca65df1bc344423d7184 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 3 Jul 2018 20:20:22 +0200 Subject: [PATCH] Fix str formatting, float given instead of int --- sitarba | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5