From e7d4d00e3ae630e7953be39cea3648098e8ffce8 Mon Sep 17 00:00:00 2001 From: LTLA Date: Thu, 15 Feb 2024 15:16:38 -0800 Subject: [PATCH] Bugfix in the main loop for refresh usage requests. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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