Reset on speed reduction
I've found that it's very easy to pollute a connection's history
such that the std-dev will amost never reach back to normal levels.
This quickly results in a cycle of connection downgrade operations
all the way to zero, lets see how this operates instead
@@ -208,7 +208,7 @@ fn observe_network(
iface: iface.to_string(),
action: ShapingAdjustAction::ReduceSpeed,
});
- running_stats.set_last_changed();
+ running_stats.reset();
} else if Instant::now() > running_stats.last_changed()
&& Instant::now() - running_stats.last_changed() > BACK_OFF_TIME
&& running_stats.is_good()
