diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-08-09 05:46:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-08-09 05:46:16 +0000 |
commit | 4630012fef63ef975bc6b30edbb9e7de95235dba (patch) | |
tree | 8494b41032ed0dcac8237a18a5f57e91052b679e | |
parent | a7c684a235e60a2d30e75f59e2b11d4c50088090 (diff) | |
download | glibc-4630012fef63ef975bc6b30edbb9e7de95235dba.tar.gz glibc-4630012fef63ef975bc6b30edbb9e7de95235dba.tar.xz glibc-4630012fef63ef975bc6b30edbb9e7de95235dba.zip |
* nscd/nscd_stat.c (receive_print_stats): Really print values of
thread number, paranoia, and restart interval the server is using.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | nscd/nscd_stat.c | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 119cc8f43f..35d1b17cea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-08-08 Ulrich Drepper <drepper@redhat.com> + * nscd/nscd_stat.c (receive_print_stats): Really print values of + thread number, paranoia, and restart interval the server is using. + * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf. * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk. * debug/vfprintf_chk.c: Add libc_hidden_def. diff --git a/nscd/nscd_stat.c b/nscd/nscd_stat.c index 8bf50f39f4..43f6266c6e 100644 --- a/nscd/nscd_stat.c +++ b/nscd/nscd_stat.c @@ -75,6 +75,10 @@ struct statdata int debug_level; time_t runtime; unsigned long int client_queued; + int nthreads; + int max_nthreads; + int paranoia; + time_t restart_interval; int ndbs; struct dbstat dbs[lastdb]; #ifdef HAVE_SELINUX @@ -93,6 +97,10 @@ send_stats (int fd, struct database_dyn dbs[lastdb]) data.debug_level = debug_level; data.runtime = time (NULL) - start_time; data.client_queued = client_queued; + data.nthreads = nthreads; + data.max_nthreads = max_nthreads; + data.paranoia = paranoia; + data.restart_interval = restart_interval; data.ndbs = lastdb; for (cnt = 0; cnt < lastdb; ++cnt) @@ -230,8 +238,9 @@ receive_print_stats (void) "%15lu number of times clients had to wait\n" "%15s paranoia mode enabled\n" "%15lu restart internal\n"), - nthreads, max_nthreads, data.client_queued, - paranoia ? yesstr : nostr, (unsigned long int) restart_interval); + data.nthreads, data.max_nthreads, data.client_queued, + data.paranoia ? yesstr : nostr, + (unsigned long int) data.restart_interval); for (i = 0; i < lastdb; ++i) { |