File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"github.com/loft-sh/vcluster/pkg/platform"
15
15
"github.com/sirupsen/logrus"
16
16
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
17
+ "k8s.io/apimachinery/pkg/util/duration"
17
18
"k8s.io/client-go/tools/clientcmd"
18
19
)
19
20
@@ -138,7 +139,7 @@ func toValues(vClusters []ListVCluster) [][]string {
138
139
vCluster .Status ,
139
140
vCluster .Version ,
140
141
isConnected ,
141
- time .Since (vCluster .Created ). Round ( 1 * time . Second ). String ( ),
142
+ duration . HumanDuration ( time .Since (vCluster .Created )),
142
143
})
143
144
}
144
145
return values
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"github.com/loft-sh/vcluster/pkg/cli/find"
15
15
"github.com/loft-sh/vcluster/pkg/cli/flags"
16
16
"github.com/loft-sh/vcluster/pkg/platform"
17
+ "k8s.io/apimachinery/pkg/util/duration"
17
18
"k8s.io/client-go/tools/clientcmd"
18
19
)
19
20
@@ -131,7 +132,7 @@ func toTableValues(vClusters []ListProVCluster) [][]string {
131
132
vCluster .Status ,
132
133
vCluster .Version ,
133
134
isConnected ,
134
- time .Since (vCluster .Created ). Round ( 1 * time . Second ). String ( ),
135
+ duration . HumanDuration ( time .Since (vCluster .Created )),
135
136
})
136
137
}
137
138
return values
You can’t perform that action at this time.
0 commit comments