From f09dcda3a1fd9b119c0c08609b10c966340b1554 Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Fri, 13 Oct 2023 11:33:17 -0400 Subject: [PATCH] convert pka to seconds vice nsec --- controllers/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/migrate.go b/controllers/migrate.go index 7c7b25d50..d57b79f2d 100644 --- a/controllers/migrate.go +++ b/controllers/migrate.go @@ -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 }