We don't need more resolution. It is a distraction and removing it saves
around 1% of db size.
def do_build(source, version, architecture, server):
- now = datetime.datetime.utcnow()
+ now = datetime.datetime.utcnow().replace(microsecond=0)
logtarget = "%s_%s_%s_%s.log.xz" % (source, version, architecture,
now.strftime("%Y%m%d%H%M%S"))
cmdline = ["ssh", server, "sh", "/dev/stdin", architecture,
(mirror.releasetime,))
archs = set(row[0] for row in cur.fetchall())
print("checking %s" % " ".join(sorted(archs)))
- now = datetime.datetime.utcnow()
+ now = datetime.datetime.utcnow().replace(microsecond=0)
mapper = multiprocessing.Pool().imap_unordered if args.parallel else map
for architecture, state in mapper(functools.partial(main_docheck, mirror),
archs):