mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 15:31:37 +00:00
Increase io error count
This commit is contained in:
parent
e582451322
commit
dc4051727a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user