no disc isn't worth logging, less frequent updates
This commit is contained in:
parent
3051b240ac
commit
07159c605c
|
@ -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]))
|
||||
|
|
|
@ -42,7 +42,7 @@ async function update() {
|
|||
}
|
||||
}
|
||||
|
||||
setInterval(update, 2 * SECOND)
|
||||
setInterval(update, 6 * SECOND)
|
||||
update()
|
||||
|
||||
// vi: ts=2 sw=2 et ai
|
||||
|
|
Loading…
Reference in New Issue