Workaround clang ICE "ran out of registers during register allocation" (2).

GitOrigin-RevId: 9a0c5a0b65bb6c7765ab28c86116c482191934e5
This commit is contained in:
levlam 2018-10-22 02:02:52 +03:00
parent 00c5033386
commit 73440a8dea

View File

@ -131,7 +131,7 @@ class NetStats {
void on_change(LocalNetStats &stats, uint64 size) {
stats.unsync_size += size;
auto now = Time::now_cached();
auto now = Time::now();
if (stats.unsync_size > 10000 || now - stats.last_update > 5 * 60) {
stats.unsync_size = 0;
stats.last_update = now;