Skip to content

Commit

Permalink
Fixing formatting
Browse files Browse the repository at this point in the history
gofmt -w internal/plugin/plugin.go
  • Loading branch information
furry13 committed Oct 8, 2024
1 parent a1a293d commit 89f4f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func NewPREF64(prefix netip.Prefix, maxInterval time.Duration) *PREF64 {
// See https://datatracker.ietf.org/doc/html/rfc8781#section-4.1-2
lifetime := maxPref64Lifetime
if int(maxInterval.Seconds())*3 < int(lifetime.Seconds()) {
lifetimeSeconds := int(maxInterval.Seconds())*3
lifetimeSeconds := int(maxInterval.Seconds()) * 3
if r := int(lifetimeSeconds) % 8; r > 0 {
lifetimeSeconds += 8 - r
}
Expand Down

0 comments on commit 89f4f09

Please sign in to comment.