kernel: Print percentage in splash screen
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-02-27 16:27:59 +01:00
parent b978d02cfb
commit a595a77421
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -151,7 +151,7 @@ static void update_splash(const char* message, u32 current, u32 total)
Framebuffer::rect(line_begin, line_height + 20, line_length, 16, BLACK); Framebuffer::rect(line_begin, line_height + 20, line_length, 16, BLACK);
TextConsole::move_to(Framebuffer::width() / 2 - 100, line_height + 20); TextConsole::move_to(Framebuffer::width() / 2 - 100, line_height + 20);
TextConsole::print(message).release_value(); TextConsole::printf("%s (%d%%)", message, (100 / total) * current).release_value();
TextConsole::move_to(0, 0); TextConsole::move_to(0, 0);