mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
client: fixing stats formating
This commit is contained in:
@@ -244,8 +244,8 @@ func (c *Client) Stats() map[string]map[string]string {
|
||||
"client": map[string]string{
|
||||
"known_servers": toString(uint64(len(c.config.Servers))),
|
||||
"num_allocations": toString(uint64(numAllocs)),
|
||||
"last_heartbeat": fmt.Sprintf("%#v", time.Since(c.lastHeartbeat)),
|
||||
"heartbeat_ttl": fmt.Sprintf("%#v", c.heartbeatTTL),
|
||||
"last_heartbeat": fmt.Sprintf("%v", time.Since(c.lastHeartbeat)),
|
||||
"heartbeat_ttl": fmt.Sprintf("%v", c.heartbeatTTL),
|
||||
},
|
||||
"runtime": nomad.RuntimeStats(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user