client: fixing stats formating

This commit is contained in:
Armon Dadgar 2015-09-22 15:29:30 -07:00
parent 0a601283ac
commit ef81b29d7a
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
}