augment whois idle with signon time

This commit is contained in:
Jeremy Latt
2014-02-17 19:56:06 -08:00
parent 9a5f21e78c
commit 528588acfc
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -165,6 +165,10 @@ func (client *Client) IdleTime() time.Duration {
return time.Since(client.atime)
}
func (client *Client) SignonTime() int64 {
return client.ctime.Unix()
}
func (client *Client) IdleSeconds() uint64 {
return uint64(client.IdleTime().Seconds())
}