mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
watch: Remove unnecessary call to StringBuilder::appendff
This commit is contained in:
parent
658eac5c46
commit
1071e4cf78
Notes:
sideshowbarker
2024-07-18 02:01:48 +09:00
Author: https://github.com/juniorrantila
Commit: 1071e4cf78
Pull-request: https://github.com/SerenityOS/serenity/pull/10324
Reviewed-by: https://github.com/BenWiederhake ✅
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ static volatile pid_t child_pid = -1;
|
|||
static String build_header_string(Vector<char const*> const& command, struct timeval const& interval)
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.appendff("Every {}", interval.tv_sec);
|
||||
builder.appendff(".{}s: \x1b[1m", interval.tv_usec / 100000);
|
||||
builder.appendff("Every {}.{}s: \x1b[1m", interval.tv_sec, interval.tv_usec / 100000);
|
||||
builder.join(' ', command);
|
||||
builder.append("\x1b[0m");
|
||||
return builder.build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue