aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd_stat.c')
-rw-r--r--nscd/nscd_stat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nscd/nscd_stat.c b/nscd/nscd_stat.c
index d55ca74bcd..7cfde982f6 100644
--- a/nscd/nscd_stat.c
+++ b/nscd/nscd_stat.c
@@ -61,6 +61,7 @@ struct statdata
char version[sizeof (compilation)];
int debug_level;
time_t runtime;
+ unsigned long int client_queued;
int ndbs;
struct dbstat dbs[lastdb];
};
@@ -75,6 +76,7 @@ send_stats (int fd, struct database dbs[lastdb])
memcpy (data.version, compilation, sizeof (compilation));
data.debug_level = debug_level;
data.runtime = time (NULL) - start_time;
+ data.client_queued = client_queued;
data.ndbs = lastdb;
for (cnt = 0; cnt < lastdb; ++cnt)
@@ -175,6 +177,9 @@ receive_print_stats (void)
else
printf (_(" %2lus server runtime\n"), diff);
+ printf (_("%15lu number of times clients had to wait\n"),
+ data.client_queued);
+
for (i = 0; i < lastdb; ++i)
{
unsigned long int hit = data.dbs[i].poshit + data.dbs[i].neghit;