Slight tweaks

This commit is contained in:
Miek Gieben 2012-05-05 10:01:56 +02:00
parent ed1c8fa812
commit 86b08d4a0e
2 changed files with 2 additions and 1 deletions

View File

@ -252,6 +252,7 @@ func (c *Client) ExchangeBuffer(inbuf []byte, a string, outbuf []byte) (n int, e
if n, err = w.readClient(outbuf); err != nil {
return n, err
}
// This rtt value isn't useful atm, need to return it somehow, TODO(mg)
w.rtt = time.Since(w.t)
return n, nil
}

View File

@ -224,7 +224,7 @@ forever:
}
fmt.Printf("%v", r.Reply)
fmt.Printf("\n;; Query time: %.3d µs\n", r.Reply.Rtt/1e3)
fmt.Printf("\n;; Query time: %.3d µs\n", r.Rtt/1e3)
// Server maybe
}
i++