mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
typo fix
This commit is contained in:
parent
85a95bf60c
commit
acf2a82d3c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ func WriteDatabaseNames(w http.ResponseWriter) {
|
||||||
}
|
}
|
||||||
dbs := make([]string, len(dbNames))
|
dbs := make([]string, len(dbNames))
|
||||||
for i := range dbNames {
|
for i := range dbNames {
|
||||||
dbs[i] = fmt.Sprintf(`"[%s]"`, dbNames[i])
|
dbs[i] = fmt.Sprintf(`[%q]`, dbNames[i])
|
||||||
}
|
}
|
||||||
fmt.Fprintf(w, `{"results":[{"name":"databases","columns":["name"],"series":[{"values":[%s]}]}]}`, strings.Join(dbs, ","))
|
fmt.Fprintf(w, `{"results":[{"name":"databases","columns":["name"],"series":[{"values":[%s]}]}]}`, strings.Join(dbs, ","))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue