Skip to content

Commit

Permalink
change qps info name
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Apr 7, 2016
1 parent 49b75ac commit f4e51c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void InfoCmd::InfoServer(std::string &info) {
tmp_stream << "db_size: " << (slash::Du(g_pika_conf->db_path()) >> 20) << "M\r\n";
tmp_stream << "log_size: " << (slash::Du(g_pika_conf->log_path()) >> 20) << "M\r\n";
tmp_stream << "compression: " << g_pika_conf->compression() << "\r\n";
tmp_stream << "safety purge: " << (g_pika_server->GetPurgeWindow(purge_max) ? static_cast<int32_t>(purge_max) : -1) << "\r\n";
tmp_stream << "safety_purge: " << (g_pika_server->GetPurgeWindow(purge_max) ? static_cast<int32_t>(purge_max) : -1) << "\r\n";
tmp_stream << "expire_logs_days: " << g_pika_conf->expire_logs_days() << "\r\n";
tmp_stream << "expire_logs_nums: " << g_pika_conf->expire_logs_nums() << "\r\n";

Expand All @@ -484,7 +484,7 @@ void InfoCmd::InfoStats(std::string &info) {
std::stringstream tmp_stream;
tmp_stream << "# Stats\r\n";
tmp_stream << "total_connections_received: " << g_pika_server->accumulative_connections() << "\r\n";
tmp_stream << "instances_ops_per_sec: " << g_pika_server->ServerCurrentQps() << "\r\n";
tmp_stream << "instantaneous_ops_per_sec: " << g_pika_server->ServerCurrentQps() << "\r\n";
tmp_stream << "accumulative_query_nums: " << g_pika_server->ServerQueryNum() << "\r\n";

info.append(tmp_stream.str());
Expand Down
2 changes: 1 addition & 1 deletion third/pink
Submodule pink updated from 76b786 to 7a78f5

0 comments on commit f4e51c9

Please sign in to comment.