mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
ames: slow multiplicatively on skipped packet
This commit is contained in:
parent
1edaf89ae0
commit
84742025e7
@ -2331,17 +2331,17 @@
|
||||
|= sent-packet-state
|
||||
^- pump-metrics
|
||||
::
|
||||
~& %skipped^max-live
|
||||
=- ~& %skipped^max-live^%to^max-live.- -
|
||||
::
|
||||
%_ metrics
|
||||
max-live (max 1 (dec max-live))
|
||||
max-live (max 1 (div max-live 2))
|
||||
==
|
||||
:: +on-ack: adjust metrics based on a packet getting acknowledged
|
||||
::
|
||||
++ on-ack
|
||||
|= sent-packet-state
|
||||
^- pump-metrics
|
||||
=- ~& %ack^rtt^%to^rtt.- -
|
||||
=- ~& %ack^(mul rtt 1.000)^%to^(mul rtt.- 1.000) -
|
||||
::
|
||||
%_ metrics
|
||||
num-live (dec (max 1 num-live))
|
||||
@ -2363,7 +2363,7 @@
|
||||
++ on-resent
|
||||
|= sent-packet-state
|
||||
^- pump-metrics
|
||||
=- ~& %resent^rtt^%to^rtt.- -
|
||||
=- ~& %resent^(mul rtt 1.000)^%to^(mul rtt.- 1.000) -
|
||||
::
|
||||
%_ metrics
|
||||
last-sent-at now
|
||||
|
Loading…
Reference in New Issue
Block a user