pro: Change the download speed reporting interval to 1000 ms

This gives a good balance between update frequency and readability.
This commit is contained in:
Tim Ledbetter 2023-06-21 20:48:06 +01:00 committed by Andreas Kling
parent 35169ef640
commit e3ade95d24
Notes: sideshowbarker 2024-07-16 23:54:15 +09:00

View file

@ -235,7 +235,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
u64 previous_downloaded_size = 0;
u64 current_bytes_per_second_speed = 0;
u32 const report_time_in_ms = 100;
u32 const speed_update_time_in_ms = 4000;
u32 const speed_update_time_in_ms = 1000;
auto previous_report_time = MonotonicTime::now();
auto previous_speed_update_time = previous_report_time;