mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Rename diagnostics metric "uptime" to "Uptime" to be consistent with other diagnostics metrics.
This commit is contained in:
parent
ed14ddf4d6
commit
24a0c76ba5
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ func (d *Diagnostics) schedule() {
|
|||
// Flush sends the current metrics.
|
||||
func (d *Diagnostics) Flush() error {
|
||||
d.mu.Lock()
|
||||
d.metrics["uptime"] = (time.Now().Unix() - d.startTime)
|
||||
d.metrics["Uptime"] = (time.Now().Unix() - d.startTime)
|
||||
buf, _ := d.Encode()
|
||||
d.mu.Unlock()
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ func TestDiagnosticsClient(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
output2 := []byte(`{"gg":10,"ss":"ss","uptime":0}`)
|
||||
output2 := []byte(`{"gg":10,"ss":"ss","Uptime":0}`)
|
||||
if eq, err = compareJSON(data, output2); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue