This commit is contained in:
Daniel Langbein 2024-08-15 17:21:37 +02:00
parent f93329a67b
commit 0e1405146d
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -40,7 +40,7 @@ class DriveTempLogger(Logger):
min_temp = data[1]
max_temp = data[2]
message = f'Temperature of drive type {self.type} is in range {min_temp}:{max_temp}'
return WarnData(data[0], max_temp, message)
return WarnData(date=data[0], value=max_temp, message=message)
def read_data(self) -> list[any]:
min_temp, max_temp = self.get_drive_temp()
@ -83,7 +83,7 @@ class DriveTempLogger(Logger):
}
Problem: If one has multiple drives attached, they can't be distinguished.
https://github.com/giampaolo/psutil/issues/1902
TODO https://github.com/giampaolo/psutil/issues/1902
Therefore, we currently accumulate the maximum and minimum values of all drives of the same type.
"""