From d41c2503e7585bb36f0af82045c74266113483d0 Mon Sep 17 00:00:00 2001 From: Random-Liu Date: Thu, 2 Mar 2017 14:48:09 -0800 Subject: [PATCH] Cast system uptime to time.Duration to fix cross build. --- test/e2e_node/node_problem_detector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/node_problem_detector.go b/test/e2e_node/node_problem_detector.go index 9891c81b97f..ce0294adf00 100644 --- a/test/e2e_node/node_problem_detector.go +++ b/test/e2e_node/node_problem_detector.go @@ -392,7 +392,7 @@ func getNodeTime() (time.Time, time.Time, error) { // Get node boot time. NOTE that because we get node current time before uptime, the boot time // calculated will be a little earlier than the real boot time. This won't affect the correctness // of the test result. - bootTime := nodeTime.Add(-time.Duration(info.Uptime * int64(time.Second))) + bootTime := nodeTime.Add(-time.Duration(info.Uptime) * time.Second) return nodeTime, bootTime, nil }