mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Everywhere: Fix many spelling errors
This commit is contained in:
parent
6bf91d00ef
commit
3102d8e160
Notes:
sideshowbarker
2024-07-17 21:30:09 +09:00
Author: https://github.com/mjz19910
Commit: 3102d8e160
Pull-request: https://github.com/SerenityOS/serenity/pull/11666
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/linusg ✅
39 changed files with 73 additions and 73 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue