zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCget_host_count                                                 *
 *                                                                            *
 * Purpose: count monitored and not monitored hosts                           *
 *                                                                            *
 ******************************************************************************/
DCget_host_count

Purpose: count monitored and not monitored hosts
DCget_host_count Purpose : count monitored and not monitored hosts
zbx_uint64_t	DCget_host_count(void)
{
	zbx_uint64_t	nhosts;
	WRLOCK_CACHE;
	dc_status_update();
	nhosts = config->status->hosts_monitored;
	UNLOCK_CACHE;
	return nhosts;
}
zbx_uint64_t DCget_host_count ( void ) { zbx_uint64_t nhosts ; WRLOCK_CACHE ; dc_status_update ( ) ; nhosts = config -> status -> hosts_monitored ; UNLOCK_CACHE ; return nhosts ; }
Function: DCget_host_count                                                 
                                                                            
 Purpose: count monitored and not monitored hosts
Function : DCget_host_count Purpose : count monitored and not monitored hosts