summaryrefslogtreecommitdiff
path: root/Userland/Utilities/watch.cpp
diff options
context:
space:
mode:
authorjunior rantila <junior.rantila@gmail.com>2021-10-03 01:08:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-23 11:41:18 +0200
commit1071e4cf78bf12affb30b5a5b09ad516044e2f9e (patch)
treeefcbd33fbbe9e6c0c349656a68ac21034ed1728a /Userland/Utilities/watch.cpp
parent658eac5c4603aac37e2a21333d511526155d48af (diff)
downloadserenity-1071e4cf78bf12affb30b5a5b09ad516044e2f9e.zip
watch: Remove unnecessary call to StringBuilder::appendff
Diffstat (limited to 'Userland/Utilities/watch.cpp')
-rw-r--r--Userland/Utilities/watch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Utilities/watch.cpp b/Userland/Utilities/watch.cpp
index 71e94cefb6..475984f3d4 100644
--- a/Userland/Utilities/watch.cpp
+++ b/Userland/Utilities/watch.cpp
@@ -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();