Пример #1
0
func (a *Agent) setLatency(ms, rv int) error {
	if !a.cfg.UseRoot {
		return nil
	}
	if ms == 0 {
		return netutil.RemoveLatency()
	}
	return netutil.SetLatency(ms, rv)
}
Пример #2
0
func (a *Agent) setLatency(ms, rv int) error {
	if ms == 0 {
		return netutil.RemoveLatency()
	}
	return netutil.SetLatency(ms, rv)
}