mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
HackStudio: Use new format functions.
This commit is contained in:
parent
3b601cd4bd
commit
7c4fb2b804
Notes:
sideshowbarker
2024-07-19 01:56:57 +09:00
Author: https://github.com/asynts
Commit: 7c4fb2b804
Pull-request: https://github.com/SerenityOS/serenity/pull/3731
23 changed files with 112 additions and 117 deletions
|
@ -82,10 +82,10 @@ void ProcessStateWidget::refresh()
|
|||
|
||||
auto& data = active_process_data.value();
|
||||
|
||||
m_pid_label->set_text(String::format("%s(%d)", data.name.characters(), pid));
|
||||
m_pid_label->set_text(String::formatted("{}({})", data.name, pid));
|
||||
m_state_label->set_text(data.threads.first().state);
|
||||
m_cpu_label->set_text(String::format("%d", data.threads.first().times_scheduled));
|
||||
m_memory_label->set_text(String::format("%d", data.amount_resident));
|
||||
m_cpu_label->set_text(String::formatted("{}", data.threads.first().times_scheduled));
|
||||
m_memory_label->set_text(String::formatted("{}", data.amount_resident));
|
||||
}
|
||||
|
||||
void ProcessStateWidget::set_tty_fd(int tty_fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue