no disc isn't worth logging, less frequent updates

This commit is contained in:
Neale Pickett 2022-08-22 19:45:02 -06:00
parent 3051b240ac
commit 07159c605c
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Reader(threading.Thread):
logging.error("Error in disc handler: %s" % e)
logging.error(traceback.format_exc())
self.eject()
elif rv == CDS_TRAY_OPEN:
elif rv in (CDS_TRAY_OPEN, CDS_NO_DISC):
time.sleep(3)
else:
logging.info("CDROM_DRIVE_STATUS: %d (%s)" % (rv, CDS_STR[rv]))

View File

@ -42,7 +42,7 @@ async function update() {
}
}
setInterval(update, 2 * SECOND)
setInterval(update, 6 * SECOND)
update()
// vi: ts=2 sw=2 et ai