diff --git a/pkg/controller/deployment/deployment_controller.go b/pkg/controller/deployment/deployment_controller.go index 7ec41080051..d3d5c7d4258 100644 --- a/pkg/controller/deployment/deployment_controller.go +++ b/pkg/controller/deployment/deployment_controller.go @@ -560,7 +560,7 @@ func (dc *DeploymentController) syncDeployment(key string) error { startTime := time.Now() glog.V(4).Infof("Started syncing deployment %q (%v)", key, startTime) defer func() { - glog.V(4).Infof("Finished syncing deployment %q (%v)", key, time.Now().Sub(startTime)) + glog.V(4).Infof("Finished syncing deployment %q (%v)", key, time.Since(startTime)) }() namespace, name, err := cache.SplitMetaNamespaceKey(key) diff --git a/test/e2e/autoscaling/cluster_autoscaler_scalability.go b/test/e2e/autoscaling/cluster_autoscaler_scalability.go index 7ebedfcf314..e993aa88e8a 100644 --- a/test/e2e/autoscaling/cluster_autoscaler_scalability.go +++ b/test/e2e/autoscaling/cluster_autoscaler_scalability.go @@ -131,7 +131,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaler scalability [Slow]", fun } break } - glog.Infof("Made nodes schedulable again in %v", time.Now().Sub(s).String()) + glog.Infof("Made nodes schedulable again in %v", time.Since(s).String()) }) It("should scale up at all [Feature:ClusterAutoscalerScalability1]", func() { diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index b4516d0cd74..9f2d68be321 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -144,7 +144,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { } break } - glog.Infof("Made nodes schedulable again in %v", time.Now().Sub(s).String()) + glog.Infof("Made nodes schedulable again in %v", time.Since(s).String()) }) It("shouldn't increase cluster size if pending pod is too large [Feature:ClusterSizeAutoscalingScaleUp]", func() {