zabbix-agent2/src/zabbix_server/alerter/alert_manager.c
/******************************************************************************
 *                                                                            *
 * Function: am_compare_mediatype_by_alerts_desc                              *
 *                                                                            *
 * Purpose: compare mediatypes by total queued alerts                         *
 *                                                                            *
 ******************************************************************************/
am_compare_mediatype_by_alerts_desc

Purpose: compare mediatypes by total queued alerts
am_compare_mediatype_by_alerts_desc Purpose : compare mediatypes by total queued alerts
static int	am_compare_mediatype_by_alerts_desc(const void *d1, const void *d2)
{
	zbx_am_mediatype_t	*m1 = *(zbx_am_mediatype_t **)d1;
	zbx_am_mediatype_t	*m2 = *(zbx_am_mediatype_t **)d2;
	return m2->refcount - m1->refcount;
}
static int am_compare_mediatype_by_alerts_desc ( const void * d1 , const void * d2 ) { zbx_am_mediatype_t * m1 = * ( zbx_am_mediatype_t * * ) d1 ; zbx_am_mediatype_t * m2 = * ( zbx_am_mediatype_t * * ) d2 ; return m2 -> refcount - m1 -> refcount ; }
Function: am_compare_mediatype_by_alerts_desc                              
                                                                            
 Purpose: compare mediatypes by total queued alerts
Function : am_compare_mediatype_by_alerts_desc Purpose : compare mediatypes by total queued alerts