fix misleading log-msg

This commit is contained in:
ed 2022-06-07 14:12:55 +02:00
parent 6bce852765
commit bd60b464bb

View file

@ -2128,7 +2128,11 @@ class Up2k(object):
if not histpath: if not histpath:
return return
rm = [x for x in reg.values() if now - x["poke"] > self.snap_discard_interval] rm = [
x
for x in reg.values()
if x["need"] and now - x["poke"] > self.snap_discard_interval
]
if rm: if rm:
m = "dropping {} abandoned uploads in {}".format(len(rm), ptop) m = "dropping {} abandoned uploads in {}".format(len(rm), ptop)
vis = [self._vis_job_progress(x) for x in rm] vis = [self._vis_job_progress(x) for x in rm]