Skip to content

Commit

Permalink
format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
soarpenguin committed Apr 22, 2016
1 parent 834b838 commit 0c254d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions cron/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,22 @@ import (
memc "github.com/smallfish/memcache"
)

var gaugess = map[string]int{"get_hit_ratio": 1, "incr_hit_ratio": 1,
"decr_hit_ratio": 1, "delete_hit_ratio": 1, "usage": 1,
"curr_connections": 1, "total_connections": 1, "bytes": 1,
"pointer_size": 1, "uptime": 1, "limit_maxbytes": 1, "threads": 1,
"curr_items": 1, "total_items": 1, "connection_structures": 1}
var gaugess = map[string]int{
"get_hit_ratio": 1,
"incr_hit_ratio": 1,
"decr_hit_ratio": 1,
"delete_hit_ratio": 1,
"usage": 1,
"curr_connections": 1,
"total_connections": 1,
"bytes": 1,
"pointer_size": 1,
"uptime": 1,
"limit_maxbytes": 1,
"threads": 1,
"curr_items": 1,
"total_items": 1,
"connection_structures": 1}

func Collect() {
if !g.Config().Transfer.Enable {
Expand Down Expand Up @@ -132,5 +143,6 @@ func collect(addrs []string) {
}
}
g.SendMetrics(mvs)
mvs = nil
}
}
2 changes: 1 addition & 1 deletion g/git.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package g
const (
COMMIT = "7c04a0c"
COMMIT = "834b838"
)

0 comments on commit 0c254d0

Please sign in to comment.