diff --git a/main.go b/main.go index b7db745..98d6417 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func main() { } else if strings.HasPrefix(reqtype, "refresh_usage-") { res, err0 := refreshUsageHandler(reqpath, &globals) - if err0 != nil { + if err0 == nil { payload["total"] = res.Total } else { reportable_err = err0