mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel: Run clang-format on everything.
This commit is contained in:
parent
98eeb8f22d
commit
bc951ca565
63 changed files with 974 additions and 856 deletions
|
@ -7,7 +7,7 @@ namespace RTC {
|
|||
static time_t s_boot_time;
|
||||
|
||||
void initialize()
|
||||
{
|
||||
{
|
||||
byte cmos_mode = CMOS::read(0x0b);
|
||||
cmos_mode |= 2; // 24 hour mode
|
||||
cmos_mode |= 4; // No BCD mode
|
||||
|
@ -116,12 +116,11 @@ time_t now()
|
|||
ASSERT(year >= 2018);
|
||||
|
||||
return days_in_years_since_epoch(year - 1) * 86400
|
||||
+ days_in_months_since_start_of_year(month - 1, year) * 86400
|
||||
+ (day - 1) * 86400
|
||||
+ hour * 3600
|
||||
+ minute * 60
|
||||
+ second;
|
||||
+ days_in_months_since_start_of_year(month - 1, year) * 86400
|
||||
+ (day - 1) * 86400
|
||||
+ hour * 3600
|
||||
+ minute * 60
|
||||
+ second;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue