@cryptotaxi247 / kubo / commits / 2ca2a042b

godeps: update metrics (freebsd build fix)

Henry committed May 6, 2015 at 14:14 UTC 2ca2a042b96cd164e1409412124f6837590166ea
2 files changed +4 -2
Godeps/Godeps.json
+1 -1
@@ -63,7 +63,7 @@
63 },
64 {
65 "ImportPath": "github.com/codahale/metrics",
66 - "Rev": "7d3beb1b480077e77c08a6f6c65ea969f6e91420"
66 + "Rev": "7c37910bc765e705301b159683480bdd44555c91"
67 },
68 {
69 "ImportPath": "github.com/coreos/go-semver/semver",
Godeps/_workspace/src/github.com/codahale/metrics/runtime/fds.go
+3 -1
@@ -14,7 +14,9 @@ func getFDLimit() (uint64, error) {
14 if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlimit); err != nil {
15 return 0, err
16 }
17 - return rlimit.Cur, nil
17 + // rlimit.Cur's type is platform-dependent, so here we widen it as far as Go
18 + // will allow by converting it to a uint64.
19 + return uint64(rlimit.Cur), nil
20 }
21
22 func getFDUsage() (uint64, error) {