Skip to content

Commit

Permalink
convert pka to seconds vice nsec
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Oct 13, 2023
1 parent 8eca268 commit f09dcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func convertLegacyHostNode(legacy models.LegacyNode) (models.Host, models.Node)
host.IsDocker = models.ParseBool(legacy.IsDocker)
host.IsK8S = models.ParseBool(legacy.IsK8S)
host.IsStatic = models.ParseBool(legacy.IsStatic)
host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive)
host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive) * time.Second
if host.PersistentKeepalive == 0 {
host.PersistentKeepalive = models.DefaultPersistentKeepAlive
}
Expand Down

0 comments on commit f09dcda

Please sign in to comment.