diff --git a/src/client/client.go b/src/client/client.go index f640076..d94cffa 100644 --- a/src/client/client.go +++ b/src/client/client.go @@ -139,7 +139,7 @@ func (p *PcClient) ErrorForSecs() int { if !p.isErrored { return 0 } - return int(time.Now().Sub(p.firstError).Seconds()) + return int(time.Since(p.firstError).Seconds()) } func (p *PcClient) logError(err error) error {