code: func (cm *ClientManager) refreshCapacity() {
  	totalCapacity := float64(cm.totalRecharge) * math.Exp(cm.capLogFactor)
  	if totalCapacity >= cm.totalCapacity*0.999 && totalCapacity <= cm.totalCapacity*1.001 {
  		return
  	}
  	cm.totalCapacity = totalCapacity
  	if cm.totalCapacityCh != nil {
  		select {
  		case cm.totalCapacityCh <- uint64(cm.totalCapacity):
  		default:
  		}
  	}
  }
docs: // refreshCapacity recalculates the total capacity value and sends an update to the subscription
  // channel if the relative change of the value since the last update is more than 0.1 percent