Increase io error count

This commit is contained in:
Taylor Helsper 2022-07-02 16:51:31 -05:00
parent e582451322
commit dc4051727a

View File

@ -206,12 +206,12 @@ def monitor_dmesg():
dmesg_log(l)
elif "reset SuperSpeed Gen 1 USB device" in l:
increment_cached_integer("dmesg_reset_usb_count")
if get_cached_data("dmesg_reset_usb_count") >= 2:
if get_cached_data("dmesg_reset_usb_count") >= 100:
set_usb_error()
dmesg_log(l)
elif "blk_update_request: I/O error, dev sd" in l:
increment_cached_integer("dmesg_io_error_count")
if get_cached_data("dmesg_io_error_count") >= 2:
if get_cached_data("dmesg_io_error_count") >= 100:
set_usb_error()
dmesg_log(l)
else: