build: Enable gometalinter "staticcheck" check

This commit is contained in:
Jakob Borg
2016-12-17 15:27:44 +01:00
committed by Jakob Borg
parent ead7281c20
commit 744c2e82b5
4 changed files with 6 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
status["goMaxProcs"] = runtime.GOMAXPROCS(-1)
status["goNumRoutine"] = runtime.NumGoroutine()
status["kbps10s1m5m15m30m60m"] = []int64{
rc.rate(10/10) * 8 / 1000,
rc.rate(1) * 8 / 1000, // each interval is 10s
rc.rate(60/10) * 8 / 1000,
rc.rate(5*60/10) * 8 / 1000,
rc.rate(15*60/10) * 8 / 1000,