replace time.Now().Sub with time.Since

This commit is contained in:
shinytang6
2019-03-18 23:57:26 +08:00
parent 66674f5496
commit 5c9f4d9dc6
14 changed files with 20 additions and 20 deletions

View File

@@ -192,7 +192,7 @@ func (rc *RouteController) reconcile(nodes []*v1.Node, routes []*cloudprovider.R
klog.V(4).Infof(msg)
return err
}
klog.Infof("Created route for node %s %s with hint %s after %v", nodeName, route.DestinationCIDR, nameHint, time.Now().Sub(startTime))
klog.Infof("Created route for node %s %s with hint %s after %v", nodeName, route.DestinationCIDR, nameHint, time.Since(startTime))
return nil
})
if err != nil {