Skip to content
Snippets Groups Projects
Commit 483a535b authored by ale's avatar ale
Browse files

fix some typos in the debug handlers

parent cb1d3624
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ const debugText = `<html>
<body>
<title>Requests</title>
<table>
<tr><th>IP</th><th>URL</th><th>Target</th></tr>
<tr><th>IP</th><th>URL</th><th>State</th><th>Target</th></tr>
{{range .}}
<tr>
<td align=left>{{.RemoteAddr}}</td>
......
......@@ -111,6 +111,9 @@ func TestHttpRedirector_LBDebugPage(t *testing.T) {
if !strings.Contains(data, "node1") {
t.Errorf("Bad response:\n%s", data)
}
if strings.Contains(data, "error executing template") {
t.Errorf("Error executing template:\n%s", data)
}
}
type httpTestContext struct {
......
......@@ -18,10 +18,11 @@ const debugText = `<html>
<tr>
<td>{{.Name}}</td>
<td>{{.Requests}}</td>
{{$data := .Data}}
{{range $d := $dimensions}}
{{$data := index .Data $d}}
{{$cur := index $data $d}}
<td>
{{$data.PredictedUtilization}}/{{$data.ReportedUtilization}}/{{$data.Cost}}
{{$cur.PredictedUtilization}}/{{$cur.ReportedUtilization}}/{{$cur.Cost}}
</td>
{{end}}
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment