1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

watch: Remove unnecessary call to StringBuilder::appendff

This commit is contained in:
junior rantila 2021-10-03 01:08:29 +02:00 committed by Andreas Kling
parent 658eac5c46
commit 1071e4cf78

View file

@ -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();