fixed component and cluster metrics

This commit is contained in:
Carman Zhang
2018-11-16 10:59:11 +08:00
parent 066f36b81f
commit c5d9da99a1
4 changed files with 116 additions and 143 deletions

View File

@@ -1235,7 +1235,7 @@ func CountAll() (int, error) {
if err != nil {
return 0, err
}
val, ok := count["total"]
val, ok := count["total_count"]
if !ok {
return 0, errors.New("not found")
@@ -1297,7 +1297,7 @@ func GetAllAccountNums() (int, error) {
if err != nil {
return 0, err
}
val, ok := count["total"]
val, ok := count["total_count"]
if !ok {
return 0, errors.New("not found")