mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
watch: Remove unnecessary call to StringBuilder::appendff
This commit is contained in:
parent
658eac5c46
commit
1071e4cf78
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)
|
static String build_header_string(Vector<char const*> const& command, struct timeval const& interval)
|
||||||
{
|
{
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
builder.appendff("Every {}", interval.tv_sec);
|
builder.appendff("Every {}.{}s: \x1b[1m", interval.tv_sec, interval.tv_usec / 100000);
|
||||||
builder.appendff(".{}s: \x1b[1m", interval.tv_usec / 100000);
|
|
||||||
builder.join(' ', command);
|
builder.join(' ', command);
|
||||||
builder.append("\x1b[0m");
|
builder.append("\x1b[0m");
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue