提交 346a6fb7 编写于 作者: J jy0 提交者: LINGuanRen

change code layout to comment

上级 9da1eaad
......@@ -230,16 +230,16 @@ int ObAllServerStat::calc_server_usage(ServerStat& server_stat)
if (std::fabs(server_stat.get_cpu_capacity()) < EPSLISON) {
cpu_assigned_percent = INVALID_ASSIGNED_PERCENT;
} else {
server_stat.server_load_.status_.resource_info_.cpu_ =
server_stat.server_load_.status_.resource_info_.cpu_; // just for code layout
// server_stat.server_load_.status_.resource_info_.cpu_ =
// server_stat.server_load_.status_.resource_info_.cpu_; // just for code layout
cpu_assigned_percent = 100.0 * static_cast<double>(server_stat.get_cpu_assigned()) /
static_cast<double>(server_stat.get_cpu_capacity());
}
if (INVALID_TOTAL_RESOURCE == server_stat.get_mem_capacity()) {
mem_assigned_percent = INVALID_ASSIGNED_PERCENT;
} else {
server_stat.server_load_.status_.resource_info_.mem_total_ =
server_stat.server_load_.status_.resource_info_.mem_total_; // just for code layout
// server_stat.server_load_.status_.resource_info_.mem_total_ =
// server_stat.server_load_.status_.resource_info_.mem_total_; // just for code layout
mem_assigned_percent = 100.0 * static_cast<double>(server_stat.get_mem_assigned()) /
static_cast<double>(server_stat.get_mem_capacity());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册