Skip to content

Commit

Permalink
Show human readable duration
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-nubla authored Dec 28, 2024
1 parent f5c308c commit 3fcc8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/worker/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (s *IPAddressSet) PrettyPrint(tabSize int) string {
// Iterate ordered
for _, key := range keys {
ipAddressInfo := s.addresses[key]
fmt.Fprintf(&result, indent(2)+"%s %.0f\n", ipAddressInfo.Address.String(), time.Until(ipAddressInfo.GetExpiration()).Seconds())
fmt.Fprintf(&result, indent(2)+"%s %s\n", ipAddressInfo.Address.String(), time.Until(ipAddressInfo.GetExpiration()).Round(time.Second))
}
s.addressesMapMutex.RUnlock()

Expand Down

0 comments on commit 3fcc8ce

Please sign in to comment.