Skip to content

Commit

Permalink
fix resource usage group count error
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Oct 8, 2018
1 parent 10d0091 commit 57056c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aliyun/log/logclient_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def get_resource_usage(client, project):
if res.count:
result["consumer_group"]["logstores"][logstore] = {"status": res.count, "limitation": 10,
"usage": _get_percentage(res.count, 10)}
consumer_group_count += res.count

result["shard"]["count"] = {"status": shard_count, "limitation": 200, "usage": _get_percentage(shard_count, 200)}
result["consumer_group"]["count"] = {"status": consumer_group_count}
Expand Down

0 comments on commit 57056c7

Please sign in to comment.