Skip to content

Commit

Permalink
Bugfix in the main loop for refresh usage requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Feb 15, 2024
1 parent 41a4ee9 commit e7d4d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7d4d00

Please sign in to comment.