summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Donau <ruelle@volleyballschlaeger.de>2021-08-23 22:22:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 22:46:41 +0200
commit19aeb71d154bb69310693d8567b9b3331ef6bf99 (patch)
treef070dfccd0a94d5b4ff3ed7af853f9b00e2bf438
parentb28b4c643e2742551e6fbe7922ca1e520869f698 (diff)
downloadserenity-19aeb71d154bb69310693d8567b9b3331ef6bf99.zip
Shell: Use String::join for the command in timing report
-rw-r--r--Userland/Shell/Builtin.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp
index b59cff5051..3e8938d118 100644
--- a/Userland/Shell/Builtin.cpp
+++ b/Userland/Shell/Builtin.cpp
@@ -9,6 +9,7 @@
#include "Shell/Formatter.h"
#include <AK/LexicalPath.h>
#include <AK/ScopeGuard.h>
+#include <AK/String.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
#include <LibCore/File.h>
@@ -951,10 +952,7 @@ int Shell::builtin_time(int argc, const char** argv)
warnln("Timing report:");
warnln("==============");
- warn("Command: ");
- for (auto& string : args)
- warn("{} ", string);
- warnln("");
+ warnln("Command: {}", String::join(' ', args));
warnln("Average time: {} ms", average);
warnln("Excluding first: {} ms", average_excluding_first);
}