stats_mgr.setValue(StatsMgr::generateName("subnet", subnet_id,
StatsMgr::generateName("pool", pool->getID(),
"total-nas")),
- static_cast<int64_t>(pool->getCapacity()));
+ pool->getCapacity());
const std::string& name_nas =
StatsMgr::generateName("subnet", subnet_id,
stats_mgr.setValue(StatsMgr::generateName("subnet", subnet_id,
StatsMgr::generateName("pd-pool", pool->getID(),
"total-pds")),
- static_cast<int64_t>(pool->getCapacity()));
+ pool->getCapacity());
const std::string& name_nas =
StatsMgr::generateName("subnet", subnet_id,
initSubnet(params, addr, len);
// Add pools to it.
- for (const auto& it : *pools_) {
+ for (const auto& pool : *pools_) {
try {
- subnet_->addPool(it);
+ subnet_->addPool(pool);
} catch (const BadValue& ex) {
// addPool() can throw BadValue if the pool is overlapping or
// is out of bounds for the subnet.