if (obj->logout)
(*obj->logout)();
- LOG(log_info, logtype_afpd, "%.2fKB read, %.2fKB written",
+ LOG(log_info, logtype_afpd, "AFP statistics: %.2f KB read, %.2f KB written",
dsi->read_count/1024.0, dsi->write_count/1024.0);
+ log_dircache_stat();
dsi_close(dsi);
}
/* ---------------------------------
* SIGHUP reload configuration file
- * FIXME here or we wait ?
-*/
+ */
volatile int reload_request = 0;
static void afp_dsi_reload(int sig _U_)
* may use alarm() */
setitimer(ITIMER_REAL, &dsi->timer, NULL);
- log_dircache_stat();
-
/* we got some traffic from the client since the previous timer
* tick. */
if ((child.flags & CHILD_DATA)) {
reload_request = 0;
load_volumes(child.obj);
dircache_dump();
+ log_dircache_stat();
}
/* The first SIGINT enables debugging, the next restores the config */
*/
void log_dircache_stat(void)
{
- LOG(log_debug, logtype_afpd, "dircache_stat: "
+ LOG(log_info, logtype_afpd, "dircache statistics: "
"entries: %lu, lookups: %llu, hits: %llu, misses: %llu, added: %llu, removed: %llu, expunged: %llu, evicted: %llu",
queue_count,
dircache_stat.lookups,