Small fixes

This commit is contained in:
Hugo Trippaers 2014-08-12 13:26:39 +02:00 committed by wilderrodrigues
parent 85434f49b9
commit 6a016d5b54
2 changed files with 3 additions and 2 deletions

View File

@ -666,7 +666,8 @@ def main(argv):
continue
ip = CsIP(dev)
for address in dbag[dev]:
CsRoute(dev).add(address)
if not address["nw_type"] == "control":
CsRoute(dev).add(address)
ip.setAddress(address)
if ip.configured():
logging.info("Address %s on device %s already configured", ip.ip(), dev)

View File

@ -166,6 +166,6 @@ class loadQueueFile:
def __moveFile(self, origPath, path):
if not os.path.exists(path):
os.makedirs(path)
timestamp = str(round(time.time()))
timestamp = str(int(round(time.time())))
os.rename(origPath, path + "/" + self.fileName + "." + timestamp)