e2e: fix logging the latest cpu summary

This commit is contained in:
Yu-Ju Hong 2016-02-23 12:16:15 -08:00
parent f52e0e5e1f
commit cdece9922b
2 changed files with 1 additions and 2 deletions

View File

@ -96,7 +96,6 @@ func runResourceTrackingTest(framework *Framework, podsPerNode int, nodeNames se
By("Reporting overall resource usage")
logPodsOnNodes(framework.Client, nodeNames.List())
rm.LogLatest()
usageSummary, err := rm.GetLatest()
Expect(err).NotTo(HaveOccurred())
Logf("%s", rm.FormatResourceUsage(usageSummary))

View File

@ -585,7 +585,7 @@ func (r *resourceMonitor) LogLatest() {
if err != nil {
Logf("%v", err)
}
r.FormatResourceUsage(summary)
Logf(r.FormatResourceUsage(summary))
}
func (r *resourceMonitor) FormatResourceUsage(s resourceUsagePerNode) string {