Skip to content

Commit

Permalink
schedule: use the public api directly
Browse files Browse the repository at this point in the history
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
  • Loading branch information
shafreeck committed Nov 20, 2019
1 parent 46d962d commit aaa70d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/schedule/operator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func (oc *OperatorController) exceedStoreLimit(ops ...*operator.Operator) bool {
continue
}

available := oc.getOrCreateStoreLimit(storeID).bucket.Available()
available := oc.getOrCreateStoreLimit(storeID).Available()
storeLimitGauge.WithLabelValues(strconv.FormatUint(storeID, 10), "available").Set(float64(available) / float64(operator.RegionInfluence))
if available < stepCost {
return true
Expand Down

0 comments on commit aaa70d9

Please sign in to comment.