diff options
| author | Kozlov Dmitry <dima@server> | 2010-12-29 11:46:39 +0300 |
|---|---|---|
| committer | Kozlov Dmitry <dima@server> | 2010-12-30 15:09:17 +0300 |
| commit | 673fa5c852f6c86af9437c957ae24523ce7a323f (patch) | |
| tree | bd04eba2174bbab1da3bf4b2305ea4db72b236e9 /accel-pptpd/cli/std_cmd.c | |
| parent | 0835edba54937da10897a7541daefc4a674f01a2 (diff) | |
| download | accel-ppp-673fa5c852f6c86af9437c957ae24523ce7a323f.tar.gz accel-ppp-673fa5c852f6c86af9437c957ae24523ce7a323f.zip | |
cli: improved 'show sessions' command
Diffstat (limited to 'accel-pptpd/cli/std_cmd.c')
| -rw-r--r-- | accel-pptpd/cli/std_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/cli/std_cmd.c b/accel-pptpd/cli/std_cmd.c index fb830dc..a5014f2 100644 --- a/accel-pptpd/cli/std_cmd.c +++ b/accel-pptpd/cli/std_cmd.c @@ -38,7 +38,7 @@ static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt, cli_sendv(client, "uptime: %i.%02i:%02i:%02i\r\n", day, hour, dt / 60, dt % 60); cli_sendv(client, "cpu: %i%%\r\n", triton_stat.cpu); - cli_sendv(client, "mem: %lu/%lu kB\r\n", vmrss * page_size_kb, vmsize * page_size_kb); + cli_sendv(client, "mem(rss/virt): %lu/%lu kB\r\n", vmrss * page_size_kb, vmsize * page_size_kb); cli_send(client, "core:\r\n"); cli_sendv(client, " mempool_allocated: %u\r\n", triton_stat.mempool_allocated); cli_sendv(client, " mempool_available: %u\r\n", triton_stat.mempool_available); @@ -487,7 +487,7 @@ static void reload_help(char * const *fields, int fields_cnt, void *client) static void __init init(void) { cli_register_simple_cmd2(show_stat_exec, show_stat_help, 2, "show", "stat"); - cli_register_simple_cmd2(show_ses_exec, show_ses_help, 2, "show", "sessions"); + cli_register_simple_cmd2(show_ses_exec, show_ses_help, 2, "show", "sessions_old"); cli_register_simple_cmd2(terminate_exec, terminate_help, 1, "terminate"); cli_register_simple_cmd2(reload_exec, reload_help, 1, "reload"); cli_register_simple_cmd2(shutdown_exec, shutdown_help, 1, "shutdown"); |
