plugins: on error-retry, don't print "Restoring RTC" twice

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2024-03-11 18:53:22 +01:00
1 parent 146bf55122
commit 90a4df8d12
1 file changed
+1
+1
View File
@@ -180,6 +180,7 @@ static void rtc_restore(void *arg)
rc = 2; rc = 2;
} }
if (!rc)
print_desc(NULL, "Restoring system clock (UTC) from RTC"); print_desc(NULL, "Restoring system clock (UTC) from RTC");
tm.tm_isdst = -1; /* Use tzdata to figure it out, please. */ tm.tm_isdst = -1; /* Use tzdata to figure it out, please. */
tv.tv_sec = mktime(&tm); tv.tv_sec = mktime(&tm);