summaryrefslogtreecommitdiff
path: root/Userland/Shell/Builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell/Builtin.cpp')
-rw-r--r--Userland/Shell/Builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp
index 0046c84674..7aab0d120d 100644
--- a/Userland/Shell/Builtin.cpp
+++ b/Userland/Shell/Builtin.cpp
@@ -946,10 +946,10 @@ int Shell::builtin_time(int argc, const char** argv)
float total_time = 0;
for (auto time : iteration_times)
total_time += static_cast<float>(time);
- float average = total_time / iteration_times.size();
+ float average = total_time / number_of_iterations;
float total_time_excluding_first = total_time - static_cast<float>(iteration_times.first());
- float average_excluding_first = total_time_excluding_first / (iteration_times.size() - 1);
+ float average_excluding_first = total_time_excluding_first / (number_of_iterations - 1);
warnln("Timing report:");
warnln("==============");