From a30d22f1b0e2aadb28ebbd154d97810bb8c90a2b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 12 Oct 2005 00:51:31 +0000 Subject: [PATCH] Probes logged in users count --- src/damon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/damon.c b/src/damon.c index c5f1586..5eaa433 100644 --- a/src/damon.c +++ b/src/damon.c @@ -104,6 +104,8 @@ static int _damon_refresh(Host * hosts) sprintf(rrd, "%s/%s", hosts[i].hostname, "swap.rrd"); _rrd_update(rrd, 2, appclient_call(ac, "swap_total", 0), appclient_call(ac, "swap_free", 0)); + sprintf(rrd, "%s/%s", hosts[i].hostname, "users.rrd"); + _rrd_update(rrd, 1, appclient_call(ac, "users", 0)); sprintf(rrd, "%s/%s", hosts[i].hostname, "procs.rrd"); _rrd_update(rrd, 1, appclient_call(ac, "procs", 0)); }