Fix: typo (#287)

This commit is contained in:
comwrg 2019-09-07 16:23:43 +08:00 committed by Dreamacro
parent 9e0bd62790
commit 9875f8ea6e

View file

@ -107,7 +107,7 @@ func (p *Proxy) DelayHistory() []C.DelayHistory {
return histories return histories
} }
// LastDelay return last history record. if proxy is not alive, return the max value of int16. // LastDelay return last history record. if proxy is not alive, return the max value of uint16.
func (p *Proxy) LastDelay() (delay uint16) { func (p *Proxy) LastDelay() (delay uint16) {
var max uint16 = 0xffff var max uint16 = 0xffff
if !p.alive { if !p.alive {