Skip to content

Commit

Permalink
Fix cpu and resource summary log in kubelet stat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Random-Liu committed Mar 13, 2016
1 parent 60f5508 commit 4df8cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/kubelet_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (r *resourceMonitor) LogLatest() {
if err != nil {
Logf("%v", err)
}
Logf(r.FormatResourceUsage(summary))
Logf("%s", r.FormatResourceUsage(summary))
}

func (r *resourceMonitor) FormatResourceUsage(s resourceUsagePerNode) string {
Expand Down Expand Up @@ -647,7 +647,7 @@ func (r *resourceMonitor) FormatCPUSummary(summary nodesCPUSummary) string {

func (r *resourceMonitor) LogCPUSummary() {
summary := r.GetCPUSummary()
Logf(r.FormatCPUSummary(summary))
Logf("%s", r.FormatCPUSummary(summary))
}

func (r *resourceMonitor) GetCPUSummary() nodesCPUSummary {
Expand Down

0 comments on commit 4df8cfc

Please sign in to comment.