We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146bf55 commit 90a4df8Copy full SHA for 90a4df8
plugins/rtc.c
@@ -180,7 +180,8 @@ static void rtc_restore(void *arg)
180
rc = 2;
181
}
182
183
- print_desc(NULL, "Restoring system clock (UTC) from RTC");
+ if (!rc)
184
+ print_desc(NULL, "Restoring system clock (UTC) from RTC");
185
tm.tm_isdst = -1; /* Use tzdata to figure it out, please. */
186
tv.tv_sec = mktime(&tm);
187
if (tv.tv_sec == (time_t)-1 || tv.tv_sec < rtc_date_fallback) {
0 commit comments