Scheduling (#206)

* display scheduling method in -d output
This commit is contained in:
Masoko
2025-03-26 21:19:10 +02:00
committed by GitHub
parent e3d41e3320
commit edd618c543

View File

@@ -393,12 +393,18 @@ def print_measured_values(monitored_values):
if key in monitored_values: if key in monitored_values:
output += f" {label}: {monitored_values[key]} {unit}\n" output += f" {label}: {monitored_values[key]} {unit}\n"
if config.drive_temps:
drive_temps = check_all_drive_temps() drive_temps = check_all_drive_temps()
if len(drive_temps) > 0: if len(drive_temps) > 0:
for device, temp in drive_temps.items(): for device, temp in drive_temps.items():
output += f" {device.capitalize()} Temp: {temp:.2f}°C\n" output += f" {device.capitalize()} Temp: {temp:.2f}°C\n"
output += "\n:: Scheduling\n " output += "\n:: Scheduling\n "
if check_service_file_exists():
output += " Running as Service\n"
elif check_crontab_entry():
output += " Running as Cron Job\n"
if check_service_file_exists(): if check_service_file_exists():
output += " Running as Service\n" output += " Running as Service\n"
elif check_crontab_entry(): elif check_crontab_entry():