1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

Everywhere: Fix many spelling errors

This commit is contained in:
mjz19910 2022-01-06 07:07:15 -07:00 committed by Linus Groh
parent 6bf91d00ef
commit 3102d8e160
39 changed files with 73 additions and 73 deletions

View file

@ -99,17 +99,17 @@ time_t now()
};
unsigned year, month, day, hour, minute, second;
bool did_read_rtc_sucessfully = false;
bool did_read_rtc_successfully = false;
for (size_t attempt = 0; attempt < 5; attempt++) {
if (!try_to_read_registers(year, month, day, hour, minute, second))
break;
if (check_registers_against_preloaded_values(year, month, day, hour, minute, second)) {
did_read_rtc_sucessfully = true;
did_read_rtc_successfully = true;
break;
}
}
dmesgln("RTC: {} Year: {}, month: {}, day: {}, hour: {}, minute: {}, second: {}", (did_read_rtc_sucessfully ? "" : "(failed to read)"), year, month, day, hour, minute, second);
dmesgln("RTC: {} Year: {}, month: {}, day: {}, hour: {}, minute: {}, second: {}", (did_read_rtc_successfully ? "" : "(failed to read)"), year, month, day, hour, minute, second);
time_t days_since_epoch = years_to_days_since_epoch(year) + day_of_year(year, month, day);
return ((days_since_epoch * 24 + hour) * 60 + minute) * 60 + second;