mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Merge pull request #1025 from codysoyland/diagnostics-uptime-caps
Rename diagnostics metric "uptime" to "Uptime"
This commit is contained in:
commit
78033a2374
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