diff options
author | Ralf Donau <ruelle@volleyballschlaeger.de> | 2021-08-23 22:22:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-23 22:46:41 +0200 |
commit | 19aeb71d154bb69310693d8567b9b3331ef6bf99 (patch) | |
tree | f070dfccd0a94d5b4ff3ed7af853f9b00e2bf438 /Userland/Shell | |
parent | b28b4c643e2742551e6fbe7922ca1e520869f698 (diff) | |
download | serenity-19aeb71d154bb69310693d8567b9b3331ef6bf99.zip |
Shell: Use String::join for the command in timing report
Diffstat (limited to 'Userland/Shell')
-rw-r--r-- | Userland/Shell/Builtin.cpp | 6 |
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); } |