From f6655a1138a11e80884959014939a25f23a1e308 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 26 May 2018 21:26:03 +0200 Subject: Use steady clock source for bandwidth limitation Using the time of day for this is slightly wrong just like it is for progress, just less visible. --- methods/http.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'methods/http.h') diff --git a/methods/http.h b/methods/http.h index ae6cedc13..5668f0b87 100644 --- a/methods/http.h +++ b/methods/http.h @@ -12,6 +12,7 @@ #include +#include #include #include #include @@ -39,7 +40,7 @@ class CircleBuf static unsigned long long BwReadLimit; static unsigned long long BwTickReadData; - static struct timeval BwReadTick; + static std::chrono::steady_clock::duration BwReadTick; static const unsigned int BW_HZ; unsigned long long LeftRead() const -- cgit v1.2.3